-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chiadog cannot handle log files with ANSI colors (i.e., when log_stdout: true
)
#288
Comments
Here is a proof of concept bug fix (
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Chia's
config.yaml
provides the optionlogging.log_stdout
.By default,
log_stdout
is set tofalse
.When setting
log_stdout
totrue
, logging happens tostdout
, allowing advanced control for stuff such as log rotation withlogrotate
on the operating system level.Also, setting
log_stdout
totrue
causes Chia's output to contain ANSI color escape sequences (e.g., coloringINFO
in green). This coloring cannot be turned off via Chia.Including the recent version 0.7.0, Chiadog cannot handle logfiles with ANSI color escape sequences. Letting Chiadog handle such a "colored" log file causes Chiadog to miss all Chia events, making Chiadog incorrectly report
[ WARNING] --- Your harvester appears to be offline! No events for the past 901 seconds. (keep_alive_monitor.py:83)
.Therefore it'd be great if Chiadog could handle colored log files as well, e.g. by stripping away any ANSI escape sequences before parsing Chia log output.
Environment:
The text was updated successfully, but these errors were encountered: