diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-27 14:33:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-04-27 14:33:32 +0100 |
commit | 9e7d4ba97cab6bd022dbe98db466a201d097493d (patch) | |
tree | cf0271a7ed9f33a8244598821f6157134d1a84b3 /src | |
parent | 1f7e6fab4cefebd90b5c5870abd687a588eb232a (diff) | |
download | rspamd-9e7d4ba97cab6bd022dbe98db466a201d097493d.tar.gz rspamd-9e7d4ba97cab6bd022dbe98db466a201d097493d.zip |
[Minor] Rspamadm: Move all warnings to stderr instead of stdin
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 |