Skip to content

Commit

Permalink
Logging: enable log timestamp to stdout logging
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
geneticdrift authored and MaxKellermann committed Jan 30, 2025
1 parent b49cfe9 commit 66ee037
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/LogInit.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 66ee037

Please sign in to comment.