From 66ee03741d2ceddeaaf02b68f5a30711ab789435 Mon Sep 17 00:00:00 2001 From: gd Date: Wed, 22 Jan 2025 21:15:23 +0200 Subject: [PATCH] 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. --- src/LogInit.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/LogInit.cxx b/src/LogInit.cxx index 3203e6e00..7840e0953 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -130,6 +130,7 @@ log_init(const ConfigData &config, bool verbose, bool use_stdout) if (use_stdout) { out_fd = STDOUT_FILENO; + EnableLogTimestamp(); } else { const auto *param = config.GetParam(ConfigOption::LOG_FILE); if (param == nullptr) {