[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: improve logging
From: |
gnunet |
Subject: |
[gnunet] branch master updated: improve logging |
Date: |
Wed, 13 Jan 2021 19:50:32 +0100 |
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 d01205965 improve logging
new e53d2c28a Merge branch 'master' of git+ssh://gnunet.org/gnunet
d01205965 is described below
commit d012059654311a8eebc148d6f91f98fe732e25ea
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Jan 13 19:49:42 2021 +0100
improve logging
---
src/pq/pq_result_helper.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/pq/pq_result_helper.c b/src/pq/pq_result_helper.c
index 205eb8fce..204ccee72 100644
--- a/src/pq/pq_result_helper.c
+++ b/src/pq/pq_result_helper.c
@@ -170,6 +170,9 @@ extract_fixed_blob (void *cls,
if (fnum < 0)
{
GNUNET_break (0);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Result does not have field %s\n",
+ fname);
return GNUNET_SYSERR;
}
if (PQgetisnull (result,
@@ -189,9 +192,9 @@ extract_fixed_blob (void *cls,
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Expected %u bytes for field `%s', got %u\n",
- *dst_size,
+ (unsigned int) *dst_size,
fname,
- len);
+ (unsigned int) len);
GNUNET_break (0);
return GNUNET_SYSERR;
}
@@ -866,6 +869,9 @@ extract_uint64 (void *cls,
fname);
if (fnum < 0)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Field %s missing in result\n",
+ fname);
GNUNET_break (0);
return GNUNET_SYSERR;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: improve logging,
gnunet <=