fix: silence xwayland/xwm noise when quiet via WLR_SILENT
This commit is contained in:
parent
abd8cf640a
commit
4d57dc29bd
1 changed files with 7 additions and 3 deletions
10
kick.c
10
kick.c
|
|
@ -12073,8 +12073,12 @@ int main(int argc, char *argv[]) {
|
||||||
EPIPE once the signal is out of the way. */
|
EPIPE once the signal is out of the way. */
|
||||||
signal(SIGPIPE, SIG_IGN);
|
signal(SIGPIPE, SIG_IGN);
|
||||||
|
|
||||||
/* wlroots logs follow KICK_LOG: quiet keeps only errors, info drops
|
/* wlroots logs follow KICK_LOG: quiet silences everything, info drops
|
||||||
protocol noise, debug shows everything. */
|
protocol noise, debug shows everything. Quiet must be SILENT, not
|
||||||
|
ERROR: wlroots only redirects Xwayland's stderr (xkbcomp warnings)
|
||||||
|
when verbosity is below ERROR, and the xwm xcb errors are routine
|
||||||
|
non-fatal noise. Kick's own fatal errors use fprintf directly, so
|
||||||
|
they still show when quiet. */
|
||||||
switch (kick_log_level()) {
|
switch (kick_log_level()) {
|
||||||
case KICK_LOG_DEBUG:
|
case KICK_LOG_DEBUG:
|
||||||
wlr_log_init(WLR_DEBUG, NULL);
|
wlr_log_init(WLR_DEBUG, NULL);
|
||||||
|
|
@ -12083,7 +12087,7 @@ int main(int argc, char *argv[]) {
|
||||||
wlr_log_init(WLR_INFO, NULL);
|
wlr_log_init(WLR_INFO, NULL);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
wlr_log_init(WLR_ERROR, NULL);
|
wlr_log_init(WLR_SILENT, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue