Skip to content

Commit

Permalink
stats: Include PIDs in "Duplicate session ID" errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Sep 9, 2016
1 parent 54ee447 commit 3e2ec5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stats/mail-session.c
Expand Up @@ -93,8 +93,8 @@ int mail_session_connect_parse(const char *const *args, const char **error_r)
session = hash_table_lookup(mail_sessions_hash, session_id);
if (session != NULL) {
*error_r = t_strdup_printf(
"CONNECT: Duplicate session ID %s for user %s service %s",
session_id, args[1], args[2]);
"CONNECT: Duplicate session ID %s for user %s service %s (old PID %ld, new PID %ld)",
session_id, args[1], args[2], (long)session->pid, (long)pid);
return -1;
}
session = i_malloc(sizeof(struct mail_session) + stats_alloc_size());
Expand Down

0 comments on commit 3e2ec5a

Please sign in to comment.