Skip to content

Commit

Permalink
lib: do not initialize logging, already done in config_init()
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Feb 21, 2017
1 parent 09b3d55 commit d1149f1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/flb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ flb_ctx_t *flb_create()
}
ctx->config = config;

/* Initialize logger */
log = flb_log_init(config, FLB_LOG_STDERR, FLB_LOG_INFO, NULL);
if (!log) {
flb_config_exit(ctx->config);
flb_free(ctx);
return NULL;
}

/* Initialize our pipe to send data to our worker */
ret = flb_pipe_create(config->ch_data);
if (ret == -1) {
Expand Down

0 comments on commit d1149f1

Please sign in to comment.