aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-23 13:31:16 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-23 13:31:16 -0400
commite78221e6a0413b8cccd41f75288798ae15b792b6 (patch)
tree2408d828f8e76427c380e5757fae5c3e38e917c0
parente2322414666488945ffcbcab06f9cca95ff731d3 (diff)
Prefix log events from wlc with [wlc]
-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);
static void wlc_log_handler(enum wlc_log_type type, const char *str) {
if (type == WLC_LOG_ERROR) {
- sway_log(L_ERROR, "%s", str);
+ sway_log(L_ERROR, "[wlc] %s", str);
} else if (type == WLC_LOG_WARN) {
- sway_log(L_INFO, "%s", str);
+ sway_log(L_INFO, "[wlc] %s", str);
} else {
- sway_log(L_DEBUG, "%s", str);
+ sway_log(L_DEBUG, "[wlc] %s", str);
}
}