summaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-21 18:24:54 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-21 18:24:54 -0400
commit2a799a731f81a851f08585e8ceaff85b16f15e39 (patch)
tree76538926bc2d9e5639db75c79970f5d824450673 /sway/main.c
parentMerge remote-tracking branch 'taiyu-len/master' (diff)
downloadsway-2a799a731f81a851f08585e8ceaff85b16f15e39.tar.gz
sway-2a799a731f81a851f08585e8ceaff85b16f15e39.tar.zst
sway-2a799a731f81a851f08585e8ceaff85b16f15e39.zip
Remove wlc logging stuff
Diffstat (limited to 'sway/main.c')
-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) {
38 38
39 setenv("WLC_DIM", "0", 0); 39 setenv("WLC_DIM", "0", 0);
40 40
41 FILE *devnull = fopen("/dev/null", "w");
42 if (devnull) {
43 // NOTE: Does not work, see wlc issue #54
44 wlc_set_log_file(devnull);
45 }
46
47 /* Changing code earlier than this point requires detailed review */ 41 /* Changing code earlier than this point requires detailed review */
48 if (!wlc_init(&interface, argc, argv)) { 42 if (!wlc_init(&interface, argc, argv)) {
49 return 1; 43 return 1;
@@ -85,9 +79,6 @@ int main(int argc, char **argv) {
85 79
86 if (debug) { 80 if (debug) {
87 init_log(L_DEBUG); 81 init_log(L_DEBUG);
88 wlc_set_log_file(stderr);
89 fclose(devnull);
90 devnull = NULL;
91 } else if (verbose || validate) { 82 } else if (verbose || validate) {
92 init_log(L_INFO); 83 init_log(L_INFO);
93 } else { 84 } else {
@@ -114,10 +105,6 @@ int main(int argc, char **argv) {
114 wlc_run(); 105 wlc_run();
115 } 106 }
116 107
117 if (devnull) {
118 fclose(devnull);
119 }
120
121 ipc_terminate(); 108 ipc_terminate();
122 109
123 return 0; 110 return 0;