mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
core.loggingmanager: Disable pretty printing when not connected to a tty
Things can behave unexpectedly when fed ANSI escape codes.
This commit is contained in:
parent
b93398ce79
commit
31eb61f22a
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ local function log_to_stdout(sink_config)
|
|||
end
|
||||
log_sink_types.stdout = log_to_stdout;
|
||||
|
||||
local do_pretty_printing = true;
|
||||
local do_pretty_printing = not have_pposix or pposix.isatty(stdout);
|
||||
|
||||
local logstyles, pretty;
|
||||
if do_pretty_printing then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue