diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-10-11 17:47:16 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-10-11 17:47:35 +0200 |
commit | b3f15d578512256e43503a84e1a96a6832d61d56 (patch) | |
tree | dfd9277c10717e51d801165e8e0abc9f4c9f2b2b /src/json | |
parent | afb30c5f9d554c1bd4854122db4547fb1551ea7a (diff) |
more logging for #9254
Diffstat (limited to 'src/json')
-rw-r--r-- | src/json/conversion.c | 3 | ||||
-rw-r--r-- | src/json/test_conversion.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/json/conversion.c b/src/json/conversion.c index 42b6f8ed2..68568e966 100644 --- a/src/json/conversion.c +++ b/src/json/conversion.c @@ -345,6 +345,9 @@ TALER_JSON_external_conversion_start (const json_t *input, GNUNET_DISK_pipe_close (pipe_stdout)); ec->write_buf = json_dumps (input, JSON_COMPACT); ec->write_size = strlen (ec->write_buf); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, + "Passing %llu bytes to JSON conversion tool\n", + (unsigned long long) ec->write_size); ec->read_task = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, ec->chld_stdout, diff --git a/src/json/test_conversion.c b/src/json/test_conversion.c index 449b02d59..e28e8be66 100644 --- a/src/json/test_conversion.c +++ b/src/json/test_conversion.c @@ -65,6 +65,7 @@ conv_cb (void *cls, GNUNET_JSON_pack_string ("foo", "arg") ); + GNUNET_assert (NULL != expect); if (1 == json_equal (expect, result)) { @@ -119,6 +120,7 @@ run (void *cls) GNUNET_JSON_pack_string ("key", "foo") ); + GNUNET_assert (NULL != input); ec = TALER_JSON_external_conversion_start (input, &conv_cb, NULL, @@ -140,7 +142,7 @@ main (int argc, unsetenv ("XDG_DATA_HOME"); unsetenv ("XDG_CONFIG_HOME"); GNUNET_log_setup ("test-conversion", - "WARNING", + "INFO", NULL); GNUNET_OS_init (TALER_project_data_default ()); global_ret = 1; |