-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix TTY logs: more robust debug & don't default to w/escape codes (#1425
) ## switch to color opt-in right now there was no way to opt-out of color (ANSI escape sequences for terminal emulators to capture/interpret). Give us a mechanism to control this now and also make it opt _in_ (so if someone's doing a local demo and wants fancy colors they now just have to do `export FORCE_COLOR=1` or `FORCE_COLOR=1 ./gradlew ...`). ## use a timezone Even if this is for someone's local machine, it's a debugging task, and that involves head-scratching many minutes/hours/days later, and communicating with other people _themselves_ in different timezones. So including a timezone only helps us here. ## stderr, not stdout this isn't an interactive CLI where stdout and sterr are distinguished, but rather a long-running server's own log output. As such, stop using stdout since there's no "nice" output: all output is for debugging purposes (and thus, for example, has no need to be buffered on some systems). this means if something fails (say in another log system in a log-multiplexer) its _own_ fallback logs will be somewhat-plausibly nearby _this_ monitor's logs, instead of hopelessly buffered to long moments away from now.
- Loading branch information
Showing
1 changed file
with
74 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters