]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
log: Fix the default prefix
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 22 May 2018 07:24:33 +0000 (10:24 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 22 May 2018 09:58:37 +0000 (09:58 +0000)
"listen_fd(123): foo" is better than "listen_fd 14foo"

src/log/log-connection.c

index d6f6659d3218ff636ff92fdb5373f8e78ad73e53..db268ff6e1b42a2b24d8a5364e24f3332fc53f8f 100644 (file)
@@ -406,7 +406,7 @@ void log_connection_create(struct log_error_buffer *errorbuf,
        log->listen_fd = listen_fd;
        log->io = io_add(fd, IO_READ, log_connection_input, log);
        log->input = i_stream_create_fd(fd, PIPE_BUF);
-       log->default_prefix = i_strdup_printf("listen_fd %d", listen_fd);
+       log->default_prefix = i_strdup_printf("listen_fd(%d): ", listen_fd);
        hash_table_create_direct(&log->clients, default_pool, 0);
        array_idx_set(&logs_by_fd, listen_fd, &log);