-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Control logging via command line or environment variable
Nheko is very chatty in its log output, generating log noise (which complicates diagnostics) and needless disk writes (which affect power consumption and SSD life). This patch provides control over logging, with command line options for: - Setting the global log level - Setting log levels for individual components (loggers) - Disabling log file writes - Disabling stderr writes (which are often written to ~/.xsession-errors) Log levels can also be set by the NHEKO_LOG_LEVEL environment variable. The old --debug command line option still works, at least for now, and is overridden by the new fine-grained options. Partially addresses #665.
- Loading branch information
Forest
committed
Aug 24, 2022
1 parent
2e5e157
commit e8c7246
Showing
3 changed files
with
47 additions
and
19 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
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
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