On 28.12.2011, at 20.31, Asheesh Laroia wrote:

> Hi Dovecot peeps,
> 
> I'm enjoying running /usr/lib/dovecot/imap directly as a PREAUTH IMAP pipe.
> 
> I find that it outputs log messages whose severity is INFO to stdout. I'm 
> running it as follows:
> 
>       /usr/lib/dovecot/imap -c /tmp/dovecot.conf
> 
> and I see the following messages output to stdout:

stderr actually.

> I'd like that message to actually not be printed, which is why I set log_path 
> to syslog.

Not possible currently. Either do:

/usr/lib/dovecot/imap 2>> ~/imap.log

Or patch the source:

diff -r 056934abd2ef src/imap/main.c
--- a/src/imap/main.c   Wed Dec 21 14:40:29 2011 +0200
+++ b/src/imap/main.c   Thu Dec 29 14:51:12 2011 +0200
@@ -320,6 +320,7 @@
 
        if (IS_STANDALONE()) {
                service_flags |= MASTER_SERVICE_FLAG_STANDALONE |
+                       MASTER_SERVICE_FLAG_DONT_LOG_TO_STDERR |
                        MASTER_SERVICE_FLAG_STD_CLIENT;
        } else {
                service_flags |= MASTER_SERVICE_FLAG_KEEP_CONFIG_OPEN;

Reply via email to