aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-13 19:49:42 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-13 19:49:42 +0100
commitd012059654311a8eebc148d6f91f98fe732e25ea (patch)
tree6c38cf66a2aadfdf47060615d1b469b94cb58cf1 /src
parent8acff3af0c2862e556ddce96440db9a8c525f395 (diff)
downloadgnunet-d012059654311a8eebc148d6f91f98fe732e25ea.tar.gz
gnunet-d012059654311a8eebc148d6f91f98fe732e25ea.zip
improve logging
Diffstat (limited to 'src')
-rw-r--r--src/pq/pq_result_helper.c10
1 files 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,
170 if (fnum < 0) 170 if (fnum < 0)
171 { 171 {
172 GNUNET_break (0); 172 GNUNET_break (0);
173 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
174 "Result does not have field %s\n",
175 fname);
173 return GNUNET_SYSERR; 176 return GNUNET_SYSERR;
174 } 177 }
175 if (PQgetisnull (result, 178 if (PQgetisnull (result,
@@ -189,9 +192,9 @@ extract_fixed_blob (void *cls,
189 { 192 {
190 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 193 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
191 "Expected %u bytes for field `%s', got %u\n", 194 "Expected %u bytes for field `%s', got %u\n",
192 *dst_size, 195 (unsigned int) *dst_size,
193 fname, 196 fname,
194 len); 197 (unsigned int) len);
195 GNUNET_break (0); 198 GNUNET_break (0);
196 return GNUNET_SYSERR; 199 return GNUNET_SYSERR;
197 } 200 }
@@ -866,6 +869,9 @@ extract_uint64 (void *cls,
866 fname); 869 fname);
867 if (fnum < 0) 870 if (fnum < 0)
868 { 871 {
872 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
873 "Field %s missing in result\n",
874 fname);
869 GNUNET_break (0); 875 GNUNET_break (0);
870 return GNUNET_SYSERR; 876 return GNUNET_SYSERR;
871 } 877 }