dovecot-2.2: dict: Include PID in the log prefix.

dovecot at dovecot.org dovecot at dovecot.org
Wed Sep 23 20:02:49 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/b8d2cbd6583b
changeset: 19201:b8d2cbd6583b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Sep 23 23:01:27 2015 +0300
description:
dict: Include PID in the log prefix.

diffstat:

 src/dict/main.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 471383fa1284 -r b8d2cbd6583b src/dict/main.c
--- a/src/dict/main.c	Wed Sep 23 23:00:30 2015 +0300
+++ b/src/dict/main.c	Wed Sep 23 23:01:27 2015 +0300
@@ -3,6 +3,7 @@
 #include "lib.h"
 #include "restrict-access.h"
 #include "randgen.h"
+#include "hostpid.h"
 #include "env-util.h"
 #include "module-dir.h"
 #include "master-service.h"
@@ -96,7 +97,7 @@
 						&error) < 0)
 		i_fatal("Error reading configuration: %s", error);
 
-	master_service_init_log(master_service, "dict: ");
+	master_service_init_log(master_service, t_strdup_printf("dict(%s): ", my_pid));
 	main_preinit();
 	master_service_set_die_callback(master_service, dict_die);
 


More information about the dovecot-cvs mailing list