Add CLI flag to enable debug logs

For bug reports, it's useful to ask for a debug log. However there's
no way for users to enable debug logs without recompiling. Add a
CLI flag to do so.
This commit is contained in:
Simon Ser 2024-11-12 13:45:17 +01:00
parent 0208f565dc
commit 852839e59f
3 changed files with 17 additions and 7 deletions

View file

@ -9,6 +9,8 @@
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_relative_pointer_v1.h>
#include <wlr/types/wlr_xdg_decoration_v1.h>
#include <wlr/util/log.h>
#if CAGE_HAS_XWAYLAND
#include <wlr/xwayland.h>
#endif
@ -63,6 +65,7 @@ struct cg_server {
bool allow_vt_switch;
bool return_app_code;
bool terminated;
enum wlr_log_importance log_level;
};
void server_terminate(struct cg_server *server);