Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5327:0c92499643ec HEAD
Make processes created with --exec-mail log to the configured location.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 15 Mar 2007 15:59:13 +0200 |
parents | 4fff090bee9e |
children | 239ccb49852c |
files | src/master/mail-process.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/mail-process.c Thu Mar 15 15:58:36 2007 +0200 +++ b/src/master/mail-process.c Thu Mar 15 15:59:13 2007 +0200 @@ -349,6 +349,15 @@ getenv("TCPREMOTEIP"), getpid(), geteuid()); + /* set up logging */ + env_put(t_strconcat("LOG_TIMESTAMP=", set->log_timestamp, NULL)); + if (*set->log_path == '\0') + env_put("USE_SYSLOG=1"); + else + env_put(t_strconcat("LOGFILE=", set->log_path, NULL)); + if (*set->info_log_path != '\0') + env_put(t_strconcat("INFOLOGFILE=", set->info_log_path, NULL)); + mail_process_set_environment(set, getenv("MAIL"), var_expand_table, FALSE); client_process_exec(executable, "");