mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-01 06:20:17 +01:00
Prefix log events from wlc with [wlc]
This commit is contained in:
parent
e232241466
commit
e78221e6a0
1 changed files with 3 additions and 3 deletions
|
@ -23,11 +23,11 @@ static void sigchld_handle(int signal);
|
||||||
|
|
||||||
static void wlc_log_handler(enum wlc_log_type type, const char *str) {
|
static void wlc_log_handler(enum wlc_log_type type, const char *str) {
|
||||||
if (type == WLC_LOG_ERROR) {
|
if (type == WLC_LOG_ERROR) {
|
||||||
sway_log(L_ERROR, "%s", str);
|
sway_log(L_ERROR, "[wlc] %s", str);
|
||||||
} else if (type == WLC_LOG_WARN) {
|
} else if (type == WLC_LOG_WARN) {
|
||||||
sway_log(L_INFO, "%s", str);
|
sway_log(L_INFO, "[wlc] %s", str);
|
||||||
} else {
|
} else {
|
||||||
sway_log(L_DEBUG, "%s", str);
|
sway_log(L_DEBUG, "[wlc] %s", str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue