From 23a6ffd12a86bda8b6d4fe7eda55b5fa2b5e72a8 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 7 Dec 2011 19:00:56 +0100 Subject: removed excessive logging --- ts3db.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ts3db.c b/ts3db.c index b264b8a..d056a5e 100644 --- a/ts3db.c +++ b/ts3db.c @@ -141,15 +141,12 @@ void save_last_result(unsigned int connection_nr, PGresult *result) char *ts3dbplugin_getlasterror(unsigned int connection_nr) { - log("getlasterror", LOG_DEVELOP); const PGconn *conn = get_connection(connection_nr); return PQerrorMessage(conn); } unsigned int ts3dbplugin_tableexists(unsigned int connection_nr, const char* table_name) { - log("tableexists", LOG_DEVELOP); - log(table_name, LOG_DEVELOP); PGconn *conn = get_connection(connection_nr); const char* const params[] = { table_name }; PGresult *result; @@ -173,13 +170,11 @@ unsigned int ts3dbplugin_tableexists(unsigned int connection_nr, const char* tab unsigned long long ts3dbplugin_getmodifiedrowcount(unsigned int connection_nr) { - log("getmodifiedrowcount", LOG_DEVELOP); return connections[connection_nr].modified_rows; } unsigned long long ts3dbplugin_getlastinsertid(unsigned int connection_nr) { - log("getlastinsertid", LOG_DEVELOP); return connections[connection_nr].last_inserted_id; } @@ -187,8 +182,6 @@ unsigned int ts3dbplugin_open(unsigned int connection_nr, const char* query, field_callback new_field, value_callback new_value, row_callback new_row, void *context) { - log(query, LOG_DEBUG); - ExecStatusType status; int col_count, row_count, i, j; PGconn *conn = get_connection(connection_nr); @@ -207,18 +200,14 @@ unsigned int ts3dbplugin_open(unsigned int connection_nr, const char* query, col_count = PQnfields(result); for (i = 0; i < col_count; i++) { - log(PQfname(result, i), LOG_DEBUG); new_field(i, PQfname(result, i), context); } row_count = PQntuples(result); for (i = 0; i < row_count; i++) { - log("new row", LOG_DEBUG); new_row(context); - log("new row done.", LOG_DEBUG); for (j = 0; j < col_count; j++) { - log(PQgetvalue(result, i, j), LOG_DEBUG); new_value(j, PQgetvalue(result, i, j), context); } } @@ -229,8 +218,6 @@ unsigned int ts3dbplugin_open(unsigned int connection_nr, const char* query, unsigned int ts3dbplugin_exec(unsigned int connection_nr, const char* query) { - log(query, LOG_DEVELOP); - ExecStatusType status; PGconn *conn = get_connection(connection_nr); PGresult *result = PQexec(conn, query); -- cgit v1.2.3