aboutsummaryrefslogtreecommitdiff
path: root/src/datacache
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-24 12:10:00 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-24 12:10:00 +0000
commit1156b9092305da331de475284321e769492a1ba6 (patch)
tree972a42e08614969af039cef3cf6a39698180aba2 /src/datacache
parent5b6199497d38ede171f81d59cdc7c3ae466b0915 (diff)
downloadgnunet-1156b9092305da331de475284321e769492a1ba6.tar.gz
gnunet-1156b9092305da331de475284321e769492a1ba6.zip
fix logging
Diffstat (limited to 'src/datacache')
-rw-r--r--src/datacache/plugin_datacache_sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c
index d7b77ac52..b5bc9f5bd 100644
--- a/src/datacache/plugin_datacache_sqlite.c
+++ b/src/datacache/plugin_datacache_sqlite.c
@@ -63,10 +63,10 @@ struct Plugin
63 * a failure of the command 'cmd' on file 'filename' 63 * a failure of the command 'cmd' on file 'filename'
64 * with the message given by strerror(errno). 64 * with the message given by strerror(errno).
65 */ 65 */
66#define LOG_SQLITE(db, level, cmd) do { GNUNET_log(level, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, sqlite3_errmsg(db)); } while(0) 66#define LOG_SQLITE(db, level, cmd) do { GNUNET_log_from (level, "datacache-sqlite", _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, sqlite3_errmsg(db)); } while(0)
67 67
68 68
69#define SQLITE3_EXEC(db, cmd) do { emsg = NULL; if (SQLITE_OK != sqlite3_exec(db, cmd, NULL, NULL, &emsg)) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, _("`%s' failed at %s:%d with error: %s\n"), "sqlite3_exec", __FILE__, __LINE__, emsg); sqlite3_free(emsg); } } while(0) 69#define SQLITE3_EXEC(db, cmd) do { emsg = NULL; if (SQLITE_OK != sqlite3_exec(db, cmd, NULL, NULL, &emsg)) { GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, "datacache-sqlite", _("`%s' failed at %s:%d with error: %s\n"), "sqlite3_exec", __FILE__, __LINE__, emsg); sqlite3_free(emsg); } } while(0)
70 70
71 71
72/** 72/**