Index: ossp-pkg/lmtp2nntp/lmtp2nntp_config.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_config.c,v rcsdiff -q -kk '-r1.67' '-r1.68' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_config.c,v' 2>/dev/null --- lmtp2nntp_config.c 2002/03/13 14:41:13 1.67 +++ lmtp2nntp_config.c 2002/03/13 14:50:37 1.68 @@ -126,6 +126,10 @@ fprintf(stderr, "%s:Error: failed to create L2 environment\n", ctx->progname); CU(ERR_EXECUTION); } + if (l2_env_levels(ctx->l2_env, L2_LEVEL_ALL, L2_LEVEL_NONE) != L2_OK) { + fprintf(stderr, "%s:Error: logging failed to set global logging level defaults\n", ctx->progname); + CU(ERR_EXECUTION); + } if (l2_env_formatter(ctx->l2_env, 'P', formatter_prefix, &ctx->ctx) != L2_OK) { fprintf(stderr, "%s:Error: logging failed to register prefix formatter\n", ctx->progname); CU(ERR_EXECUTION); @@ -170,10 +174,6 @@ fprintf(stderr, "%s:Error: logging failed to link child channel\n", ctx->progname); CU(ERR_EXECUTION); } - if (l2_channel_levels(ctx->l2, L2_LEVEL_ALL, L2_LEVEL_NONE) != L2_OK) { /* FIXME should this globalmask and flushmask be user-configurable? */ - fprintf(stderr, "%s:Error: logging failed to set global logging level\n", ctx->progname); - CU(ERR_EXECUTION); - } if (l2_channel_open(ctx->l2) != L2_OK) { fprintf(stderr, "%s:Error: logging failed to open channel stream\n", ctx->progname); CU(ERR_EXECUTION);