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.
This commit is contained in:
gd 2025-01-22 21:15:23 +02:00 committed by Max Kellermann
parent b49cfe96f4
commit 66ee03741d

@ -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) {