aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-21 18:24:54 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-21 18:24:54 -0400
commit2a799a731f81a851f08585e8ceaff85b16f15e39 (patch)
tree76538926bc2d9e5639db75c79970f5d824450673
parent39041d07b5fc3420cd964142a948f429b36a7a5c (diff)
Remove wlc logging stuff
-rw-r--r--sway/main.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sway/main.c b/sway/main.c
index f37f086d..ffbcdbdf 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -38,12 +38,6 @@ int main(int argc, char **argv) {
setenv("WLC_DIM", "0", 0);
- FILE *devnull = fopen("/dev/null", "w");
- if (devnull) {
- // NOTE: Does not work, see wlc issue #54
- wlc_set_log_file(devnull);
- }
-
/* Changing code earlier than this point requires detailed review */
if (!wlc_init(&interface, argc, argv)) {
return 1;
@@ -85,9 +79,6 @@ int main(int argc, char **argv) {
if (debug) {
init_log(L_DEBUG);
- wlc_set_log_file(stderr);
- fclose(devnull);
- devnull = NULL;
} else if (verbose || validate) {
init_log(L_INFO);
} else {
@@ -114,10 +105,6 @@ int main(int argc, char **argv) {
wlc_run();
}
- if (devnull) {
- fclose(devnull);
- }
-
ipc_terminate();
return 0;