From 8a403a6bd56c58d2ee1d47b959d6adb7096f04d2 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 1 Sep 2010 10:10:28 +0000 Subject: Add a no_logging flag. --- src/assuan-logging.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/assuan-logging.c') diff --git a/src/assuan-logging.c b/src/assuan-logging.c index 14cebe2..dc2427e 100644 --- a/src/assuan-logging.c +++ b/src/assuan-logging.c @@ -170,7 +170,9 @@ _assuan_log_control_channel (assuan_context_t ctx, int outbound, /* Check whether logging is enabled and do a quick check to see whether the callback supports our category. */ - if (!ctx || !ctx->log_cb + if (!ctx + || !ctx->log_cb + || ctx->flags.no_logging || !(*ctx->log_cb) (ctx, ctx->log_cb_data, ASSUAN_LOG_CONTROL, NULL)) return; -- cgit v1.2.3