summaryrefslogtreecommitdiff
path: root/sway/main.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2020-02-10 21:25:07 -0500
committerSimon Ser <[email protected]>2020-02-11 16:02:11 +0100
commit33a984bbc5c5ec4202f24bacf6ddd584b95a9ec0 (patch)
tree1f1f14d6aede50cf2abcaf9fe4baa7c7190ee34d /sway/main.c
parent31a83bd48d9aad2a039565fc39f1a52bd0cdf17d (diff)
config: fix validation exit code and log level
This makes it so invalid configs will return the exit code 1 when the validation flag is given. This also reduces the log level to SWAY_ERROR, which makes it so only the errors are shown. If someone wants more verbose output, the can use the -V/--verbose or -d/--debug flags. Additionally, this also makes it so swaybg will not be spawned when validating the config.
Diffstat (limited to 'sway/main.c')
-rw-r--r--sway/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/main.c b/sway/main.c
index d4585f73..bd6c1ae4 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -315,7 +315,7 @@ int main(int argc, char **argv) {
if (debug) {
sway_log_init(SWAY_DEBUG, sway_terminate);
wlr_log_init(WLR_DEBUG, NULL);
- } else if (verbose || validate) {
+ } else if (verbose) {
sway_log_init(SWAY_INFO, sway_terminate);
wlr_log_init(WLR_INFO, NULL);
} else {