aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/assuan-logging.c')
-rw-r--r--src/assuan-logging.c4
1 files changed, 3 insertions, 1 deletions
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;