diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/logger/logger_console.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libserver/logger/logger_console.c b/src/libserver/logger/logger_console.c index 9aad85f6e..c7857bdfe 100644 --- a/src/libserver/logger/logger_console.c +++ b/src/libserver/logger/logger_console.c @@ -165,7 +165,12 @@ rspamd_log_console_log (const gchar *module, const gchar *id, fd = priv->crit_fd; } else { - fd = priv->fd; + if (priv->log_rspamadm && (level_flags & G_LOG_LEVEL_WARNING)) { + fd = priv->crit_fd; + } + else { + fd = priv->fd; + } } #ifndef DISABLE_PTHREAD_MUTEX |