Skip to content

Commit

Permalink
lib-storage: Add %{session} to mail_log_prefix by default
Browse files Browse the repository at this point in the history
Parameter is added to initialization string.
  • Loading branch information
Baofeng Wang authored and GitLab committed May 9, 2016
1 parent 52041ed commit a11c0bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/example-config/conf.d/10-logging.conf
Expand Up @@ -72,7 +72,7 @@ plugin {

# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
# possible variables you can use.
#mail_log_prefix = "%s(%u): "
#mail_log_prefix = "%s(%u)<%{session}>: "

# Format to use for logging mail deliveries. See doc/wiki/Variables.txt for
# list of all variables you can use. Some of the common ones include:
Expand Down
2 changes: 1 addition & 1 deletion src/lib-storage/mail-storage-settings.c
Expand Up @@ -276,7 +276,7 @@ static const struct mail_user_settings mail_user_default_settings = {
.mail_plugins = "",
.mail_plugin_dir = MODULEDIR,

.mail_log_prefix = "%s(%u): ",
.mail_log_prefix = "%s(%u)<%{session}>: ",

.namespaces = ARRAY_INIT,
.plugin_envs = ARRAY_INIT
Expand Down

0 comments on commit a11c0bc

Please sign in to comment.