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.
This commit is contained in:
Simon Ser 2019-09-22 21:40:49 +03:00 committed by Drew DeVault
parent da0ad4c39e
commit c41c24d684

View file

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