From 4a8e454d609be500ae6d02e86765b5dcf89f1349 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Sun, 4 Jan 2026 14:59:47 +0000 Subject: [PATCH] refactor: Update LogRuntimeConfig to cast width and height to int for logging and adjust log level declaration --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 03e1277..f94ae1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -246,8 +246,8 @@ AppOptions ParseCommandLine(int argc, char** argv) { void LogRuntimeConfig(const RuntimeConfig& config, std::shared_ptr logger) { if (logger) { - logger->TraceVariable("config.width", config.width); - logger->TraceVariable("config.height", config.height); + logger->TraceVariable("config.width", static_cast(config.width)); + logger->TraceVariable("config.height", static_cast(config.height)); logger->TraceVariable("config.scriptPath", config.scriptPath.string()); } } @@ -314,7 +314,7 @@ int main(int argc, char** argv) { sdl3cpp::app::ServiceBasedApp app(options.runtimeConfig.scriptPath); // Configure logging - services::LogLevel logLevel = options.traceEnabled ? services::LogLevel::TRACE : services::LogLevel::INFO; + sdl3cpp::services::LogLevel logLevel = options.traceEnabled ? sdl3cpp::services::LogLevel::TRACE : sdl3cpp::services::LogLevel::INFO; app.ConfigureLogging(logLevel, true, "sdl3_app.log"); // Log startup information using service-based logging