Error out on unknown debug flag

Otehrwise it's pretty easy to misremember a flag and think damage=rerender is
enabled when it's not.
master
Simon Ser 5 years ago committed by Drew DeVault
parent da0ad4c39e
commit c41c24d684

@ -211,6 +211,8 @@ void enable_debug_flag(const char *flag) {
debug.txn_timings = true; debug.txn_timings = true;
} else if (strncmp(flag, "txn-timeout=", 12) == 0) { } else if (strncmp(flag, "txn-timeout=", 12) == 0) {
server.txn_timeout_ms = atoi(&flag[12]); server.txn_timeout_ms = atoi(&flag[12]);
} else {
sway_log(SWAY_ERROR, "Unknown debug flag: %s", flag);
} }
} }

Loading…
Cancel
Save