diff --git a/avro/maxavrocheck.c b/avro/maxavrocheck.c index 3d65f9776..e5951f3d2 100644 --- a/avro/maxavrocheck.c +++ b/avro/maxavrocheck.c @@ -24,6 +24,8 @@ #include #include +#include + static int verbose = 0; static uint64_t seekto = 0; static int64_t num_rows = -1; @@ -136,6 +138,12 @@ int main(int argc, char** argv) return 1; } + if (!mxs_log_init(NULL, NULL, MXS_LOG_TARGET_STDOUT)) + { + fprintf(stderr, "Failed to initialize log.\n"); + return 2; + } + char c; int option_index;