From 809c693f845963e85adc379b34ddaf46423e4dec Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Wed, 27 Mar 2024 13:29:54 +0100 Subject: [PATCH] Enable debug logging level when running in debug mode --- src/sparky.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sparky.c b/src/sparky.c index 1defdac..7623a66 100644 --- a/src/sparky.c +++ b/src/sparky.c @@ -24,6 +24,11 @@ #include int main(int argc, char **argv) { +#ifndef NDEBUG + SetTraceLogLevel(LOG_DEBUG); + TraceLog(LOG_WARNING, "Debug mode is enabled"); +#endif + if (argc == 2 && (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))) { TraceLog(LOG_INFO, "usage: %s [--server]", argv[0]); return 0;