Skip to content

Commit 38f209f

Browse files
committed
daemons: default log destination to "automatic" rather than "stderr"
9905bcd promised in documentation that ``-`` would be stderr/syslog autodetection, but mlog_init still treated it as stderr only. Fixes: gromox-1.33-48-g9905bcde5 References: GXH-146
1 parent 48819ff commit 38f209f

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

exch/http/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static constexpr cfg_directive http_cfg_defaults[] = {
104104
{"http_listen_addr", "::"},
105105
{"http_listen_port", "80"},
106106
{"http_listen_tls_port", "0"},
107-
{"http_log_file", "-"},
107+
{"http_log_file", ""},
108108
{"http_log_level", "4" /* LV_NOTICE */},
109109
{"http_rqbody_flush_size", "512K", CFG_SIZE, "0"},
110110
{"http_rqbody_max_size", "50M", CFG_SIZE, "1"},

exch/midb/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static constexpr cfg_directive midb_cfg_defaults[] = {
9191
{"midb_hosts_allow", ""}, /* ::1 default set later during startup */
9292
{"midb_listen_ip", "::1"},
9393
{"midb_listen_port", "5555"},
94-
{"midb_log_file", "-"},
94+
{"midb_log_file", ""},
9595
{"midb_log_level", "4" /* LV_NOTICE */},
9696
{"midb_reload_interval", "60min", CFG_TIME, "1min", "1year"},
9797
{"midb_schema_upgrades", "auto"},

exch/zcore/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static constexpr cfg_directive zcore_cfg_defaults[] = {
108108
{"x500_org_name", "Gromox default"},
109109
{"zarafa_threads_num", "zcore_threads_num", CFG_ALIAS},
110110
{"zcore_listen", PKGRUNDIR "/zcore.sock"},
111-
{"zcore_log_file", "-"},
111+
{"zcore_log_file", ""},
112112
{"zcore_log_level", "4" /* LV_NOTICE */},
113113
{"zcore_max_obh_per_session", "500", CFG_SIZE, "100"},
114114
{"zcore_threads_num", "10", CFG_SIZE, "1", "1000"},

mda/delivery_app/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static constexpr cfg_directive delivery_cfg_defaults[] = {
6464
{"data_file_path", PKGDATADIR "/delivery:" PKGDATADIR},
6565
{"dequeue_maximum_mem", "1G", CFG_SIZE, "1"},
6666
{"dequeue_path", PKGSTATEQUEUEDIR},
67-
{"lda_log_file", "-"},
67+
{"lda_log_file", ""},
6868
{"lda_log_level", "4" /* LV_NOTICE */},
6969
{"running_identity", RUNNING_IDENTITY},
7070
{"work_threads_max", "5", CFG_SIZE, "1"},

mda/smtp/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static constexpr cfg_directive smtp_cfg_defaults[] = {
8787
{"lda_listen_addr", "::"},
8888
{"lda_listen_port", "25"},
8989
{"lda_listen_tls_port", "0"},
90-
{"lda_log_file", "-"},
90+
{"lda_log_file", ""},
9191
{"lda_log_level", "4" /* LV_NOTICE */},
9292
{"lda_thread_charge_num", "400", CFG_SIZE, "4"},
9393
{"lda_thread_init_num", "5", CFG_SIZE},

mra/imap/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static constexpr cfg_directive imap_cfg_defaults[] = {
111111
{"imap_listen_addr", "::"},
112112
{"imap_listen_port", "143"},
113113
{"imap_listen_tls_port", "0"},
114-
{"imap_log_file", "-"},
114+
{"imap_log_file", ""},
115115
{"imap_log_level", "4" /* LV_NOTICE */},
116116
{"imap_rfc9051", "1", CFG_BOOL},
117117
{"imap_support_starttls", "imap_support_tls", CFG_ALIAS},

mra/pop3/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static constexpr cfg_directive pop3_cfg_defaults[] = {
106106
{"pop3_listen_addr", "::"},
107107
{"pop3_listen_port", "110"},
108108
{"pop3_listen_tls_port", "0"},
109-
{"pop3_log_file", "-"},
109+
{"pop3_log_file", ""},
110110
{"pop3_log_level", "4" /* LV_NOTICE */},
111111
{"pop3_support_stls", "pop3_support_tls", CFG_ALIAS},
112112
{"pop3_support_tls", "false", CFG_BOOL},

tools/event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static constexpr cfg_directive event_cfg_defaults[] = {
124124
{"event_hosts_allow", ""}, /* ::1 default set later during startup */
125125
{"event_listen_ip", "::1"},
126126
{"event_listen_port", "33333"},
127-
{"event_log_file", "-"},
127+
{"event_log_file", ""},
128128
{"event_log_level", "4" /* LV_NOTICE */},
129129
{"event_threads_num", "50", CFG_SIZE, "1", "1000"},
130130
CFG_TABLE_END,

tools/timer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static constexpr cfg_directive timer_cfg_defaults[] = {
9898
{"timer_hosts_allow", ""}, /* ::1 default set later during startup */
9999
{"timer_listen_ip", "::1"},
100100
{"timer_listen_port", "6666"},
101-
{"timer_log_file", "-"},
101+
{"timer_log_file", ""},
102102
{"timer_log_level", "4" /* LV_NOTICE */},
103103
{"timer_state_path", PKGSTATEDIR "/timer.txt"},
104104
{"timer_threads_num", "50", CFG_SIZE, "5", "50"},

0 commit comments

Comments
 (0)