use log_from
authorChristian Grothoff <christian@grothoff.org>
Sun, 19 Mar 2017 23:47:18 +0000 (00:47 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 19 Mar 2017 23:47:18 +0000 (00:47 +0100)
src/pq/pq.c

index f4bab4e00f2fa7f9ece6f40020ac14cbb8c88113..4e24e1ef863ad6bbe141b833f9103e76d80e48c2 100644 (file)
@@ -85,9 +85,10 @@ GNUNET_PQ_exec_prepared (PGconn *db_conn,
       off += x->num_params;
     }
     GNUNET_assert (off == len);
-    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-               "Executing prepared SQL statement `%s'\n",
-               name);
+    GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
+                     "pq",
+                     "Executing prepared SQL statement `%s'\n",
+                     name);
     res = PQexecPrepared (db_conn,
                           name,
                           len,