]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Add session ID to log line prefix.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 29 Jun 2016 15:33:27 +0000 (18:33 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 29 Jun 2016 15:33:27 +0000 (18:33 +0300)
src/doveadm/doveadm-dsync.c

index 0a5afb119f19f2e3dae34454c81904defe85e9a0..94e1599c47c420ca8d28076264f88c6ac1216588 100644 (file)
@@ -460,7 +460,7 @@ static void cmd_dsync_log_remote_status(int status, bool remote_errors_logged,
 
 static void cmd_dsync_run_remote(struct mail_user *user)
 {
-       i_set_failure_prefix("dsync-local(%s): ", user->username);
+       i_set_failure_prefix("dsync-local(%s)<%s>: ", user->username, user->session_id);
        io_loop_run(current_ioloop);
 }
 
@@ -1108,7 +1108,7 @@ cmd_dsync_server_run(struct doveadm_mail_cmd_context *_ctx,
        } else {
                /* the log messages go via stderr to the remote dsync,
                   so the names are reversed */
-               i_set_failure_prefix("dsync-remote(%s): ", user->username);
+               i_set_failure_prefix("dsync-remote(%s)<%s>: ", user->username, user->session_id);
                name = "local";
        }