summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-12-07 19:00:56 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-12-07 19:00:56 +0100
commit23a6ffd12a86bda8b6d4fe7eda55b5fa2b5e72a8 (patch)
tree1677b5ee33c8e17fd288a436d17e82ce7a68f36c
parent3108dd1c76ab57f1e4462c691cd6d015eb65f4eb (diff)
downloadts3db_postgres-23a6ffd12a86bda8b6d4fe7eda55b5fa2b5e72a8.tar.gz
ts3db_postgres-23a6ffd12a86bda8b6d4fe7eda55b5fa2b5e72a8.tar.xz
ts3db_postgres-23a6ffd12a86bda8b6d4fe7eda55b5fa2b5e72a8.zip
removed excessive logging
-rw-r--r--ts3db.c13
1 files changed, 0 insertions, 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);