dovecot-1.2: master: Expand %m properly at startup errors.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 7 18:44:51 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/cc0d7c00c6ce
changeset: 9369:cc0d7c00c6ce
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 07 11:44:38 2009 -0400
description:
master: Expand %m properly at startup errors.
diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
src/master/main.c | 8 ++------
diffs (25 lines):
diff -r 597e18c0bc7e -r cc0d7c00c6ce src/master/main.c
--- a/src/master/main.c Sun Sep 06 22:40:21 2009 -0400
+++ b/src/master/main.c Mon Sep 07 11:44:38 2009 -0400
@@ -144,9 +144,7 @@ tee_fatal_handler(enum log_type type, in
{
const struct settings *set = settings_root->defaults;
- fputs("Fatal: ", stderr);
- vfprintf(stderr, fmt, args);
- fputc('\n', stderr);
+ fprintf(stderr, "Fatal: %s\n", t_strdup_vprintf(fmt, args));
if (*set->log_path == '\0') {
i_syslog_fatal_handler(type, status, fmt, args);
@@ -160,9 +158,7 @@ tee_error_handler(enum log_type type, co
{
const struct settings *set = settings_root->defaults;
- fputs("Error: ", stderr);
- vfprintf(stderr, fmt, args);
- fputc('\n', stderr);
+ fprintf(stderr, "Error: %s\n", t_strdup_vprintf(fmt, args));
if (*set->log_path == '\0') {
i_syslog_error_handler(type, fmt, args);
More information about the dovecot-cvs
mailing list