gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: nicer pq logging


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: nicer pq logging
Date: Fri, 10 Aug 2018 21:53:04 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 32096a26e nicer pq logging
32096a26e is described below

commit 32096a26ea635d7f8d757319945245cd06d262c4
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Aug 10 21:53:02 2018 +0200

    nicer pq logging
---
 src/pq/pq.c      | 6 +++++-
 src/pq/pq_eval.c | 2 +-
 src/pq/pq_exec.c | 6 +++++-
 3 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/pq/pq.c b/src/pq/pq.c
index 66f9d983b..ae12f461e 100644
--- a/src/pq/pq.c
+++ b/src/pq/pq.c
@@ -11,7 +11,7 @@
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Affero General Public License for more details.
- 
+
   You should have received a copy of the GNU Affero General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -43,6 +43,10 @@ GNUNET_PQ_exec_prepared (PGconn *db_conn,
   unsigned int len;
   unsigned int i;
 
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Running prepared statement `%s' on %p\n",
+              name,
+              db_conn);
   /* count the number of parameters */
   len = 0;
   for (i=0;0 != params[i].num_params;i++)
diff --git a/src/pq/pq_eval.c b/src/pq/pq_eval.c
index 5abb1cd9c..586de6fea 100644
--- a/src/pq/pq_eval.c
+++ b/src/pq/pq_eval.c
@@ -11,7 +11,7 @@
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Affero General Public License for more details.
- 
+
   You should have received a copy of the GNU Affero General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
diff --git a/src/pq/pq_exec.c b/src/pq/pq_exec.c
index 31dbc3ff7..f089d7c0a 100644
--- a/src/pq/pq_exec.c
+++ b/src/pq/pq_exec.c
@@ -11,7 +11,7 @@
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Affero General Public License for more details.
- 
+
   You should have received a copy of the GNU Affero General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
@@ -79,6 +79,10 @@ GNUNET_PQ_exec_statements (PGconn *connection,
   {
     PGresult *result;
 
+    GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+                "Running statement `%s' on %p\n",
+                es[i].sql,
+                connection);
     result = PQexec (connection,
                      es[i].sql);
     if ( (GNUNET_NO == es[i].ignore_errors) &&

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]