Skip to content

Commit 66ee037

Browse files
geneticdriftMaxKellermann
authored andcommitted
Logging: enable log timestamp to stdout logging
When running with stdout output to debug the server or misbehaving clients, it is useful to have the timestamp to detect timing issues and response times. Especially when opening and playing online sources that block the connection thread sometime for a significantly long time that makes the client-server unresponsive and cause timeouts in clients.
1 parent b49cfe9 commit 66ee037

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LogInit.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ log_init(const ConfigData &config, bool verbose, bool use_stdout)
130130

131131
if (use_stdout) {
132132
out_fd = STDOUT_FILENO;
133+
EnableLogTimestamp();
133134
} else {
134135
const auto *param = config.GetParam(ConfigOption::LOG_FILE);
135136
if (param == nullptr) {

0 commit comments

Comments
 (0)