summaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-23 13:31:16 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-23 13:31:16 -0400
commite78221e6a0413b8cccd41f75288798ae15b792b6 (patch)
tree2408d828f8e76427c380e5757fae5c3e38e917c0 /sway/main.c
parentDo not log with colors unless stdout is a tty (diff)
downloadsway-e78221e6a0413b8cccd41f75288798ae15b792b6.tar.gz
sway-e78221e6a0413b8cccd41f75288798ae15b792b6.tar.zst
sway-e78221e6a0413b8cccd41f75288798ae15b792b6.zip
Prefix log events from wlc with [wlc]
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c6
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
24static void wlc_log_handler(enum wlc_log_type type, const char *str) { 24static 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