diff options
Diffstat (limited to 'wsutil/json_dumper.c')
-rw-r--r-- | wsutil/json_dumper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wsutil/json_dumper.c b/wsutil/json_dumper.c index a45366aa6d..038d8c216b 100644 --- a/wsutil/json_dumper.c +++ b/wsutil/json_dumper.c @@ -12,9 +12,12 @@ */ #include "json_dumper.h" +#define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL #include <math.h> +#include <wsutil/wslog.h> + /* * json_dumper.state[current_depth] describes a nested element: * - type: none/object/array/value @@ -101,7 +104,7 @@ json_dumper_bad(json_dumper *dumper, enum json_dumper_change change, return; } fflush(dumper->output_file); - g_error("Bad json_dumper state: %s; change=%d type=%d depth=%d prev/curr/next state=%02x %02x %02x", + ws_error("Bad json_dumper state: %s; change=%d type=%d depth=%d prev/curr/next state=%02x %02x %02x", what, change, type, dumper->current_depth, states[0], states[1], states[2]); } |