changeset 11559:a05e3bbc4e46 HEAD

doveadm log find: Avoid printing "syslog" as log path.
author Timo Sirainen <tss@iki.fi>
date Wed, 16 Jun 2010 18:36:02 +0100
parents 3e50223d0014
children a55da849216c
files src/doveadm/doveadm-log.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/doveadm/doveadm-log.c	Wed Jun 16 18:29:45 2010 +0100
+++ b/src/doveadm/doveadm-log.c	Wed Jun 16 18:36:02 2010 +0100
@@ -218,7 +218,9 @@
 	/* first get the paths that we know are used */
 	set = master_service_settings_get(master_service);
 	log_file_path = set->log_path;
-	if (*log_file_path != '\0' && strcmp(log_file_path, "syslog") != 0) {
+	if (strcmp(log_file_path, "syslog") == 0)
+		log_file_path = "";
+	if (*log_file_path != '\0') {
 		cmd_log_find_add(&ctx, log_file_path, LOG_TYPE_WARNING);
 		cmd_log_find_add(&ctx, log_file_path, LOG_TYPE_ERROR);
 		cmd_log_find_add(&ctx, log_file_path, LOG_TYPE_FATAL);