From 32db0236c1b44e27b4d5bc554c101ea67055f50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Sun, 29 Mar 2020 20:34:24 -0400 Subject: [PATCH] remove __FILE__ in the debug log messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It shows the full path in the compiled binary, which is something we don’t want in a release build. Messages have enough context even without the file path anyway. --- include/core/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/core/log.h b/include/core/log.h index 3c410d3..b4277e0 100644 --- a/include/core/log.h +++ b/include/core/log.h @@ -44,7 +44,7 @@ * shown to everyone, except to inspect the cause of a failure. Use this * freely. */ -#define oshu_log_debug(...) SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, "[" __FILE__ "] " __VA_ARGS__) +#define oshu_log_debug(...) SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__) /** * Informational messages are things that we'd like the techniest users to see,