diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-23 13:31:16 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-23 13:31:16 -0400 |
commit | e78221e6a0413b8cccd41f75288798ae15b792b6 (patch) | |
tree | 2408d828f8e76427c380e5757fae5c3e38e917c0 | |
parent | Do not log with colors unless stdout is a tty (diff) | |
download | sway-e78221e6a0413b8cccd41f75288798ae15b792b6.tar.gz sway-e78221e6a0413b8cccd41f75288798ae15b792b6.tar.zst sway-e78221e6a0413b8cccd41f75288798ae15b792b6.zip |
Prefix log events from wlc with [wlc]
-rw-r--r-- | sway/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/main.c b/sway/main.c index f8959009..3f2fcd94 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -23,11 +23,11 @@ static void sigchld_handle(int signal); | |||
23 | 23 | ||
24 | static void wlc_log_handler(enum wlc_log_type type, const char *str) { | 24 | static void wlc_log_handler(enum wlc_log_type type, const char *str) { |
25 | if (type == WLC_LOG_ERROR) { | 25 | if (type == WLC_LOG_ERROR) { |
26 | sway_log(L_ERROR, "%s", str); | 26 | sway_log(L_ERROR, "[wlc] %s", str); |
27 | } else if (type == WLC_LOG_WARN) { | 27 | } else if (type == WLC_LOG_WARN) { |
28 | sway_log(L_INFO, "%s", str); | 28 | sway_log(L_INFO, "[wlc] %s", str); |
29 | } else { | 29 | } else { |
30 | sway_log(L_DEBUG, "%s", str); | 30 | sway_log(L_DEBUG, "[wlc] %s", str); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | 33 | ||