diff options
author | Werner Koch <[email protected]> | 2010-09-01 10:10:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-09-01 10:10:28 +0000 |
commit | 8a403a6bd56c58d2ee1d47b959d6adb7096f04d2 (patch) | |
tree | 56a8aed9a1bee7a139e68bfa1450306269189d2b /src/assuan-logging.c | |
parent | Prepare for a gpg-error change (diff) | |
download | libassuan-8a403a6bd56c58d2ee1d47b959d6adb7096f04d2.tar.gz libassuan-8a403a6bd56c58d2ee1d47b959d6adb7096f04d2.zip |
Add a no_logging flag.
Diffstat (limited to 'src/assuan-logging.c')
-rw-r--r-- | src/assuan-logging.c | 4 |
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; |