Skip to content

Commit

Permalink
remove __FILE__ in the debug log messages
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fmang committed Mar 30, 2020
1 parent 2f36584 commit 32db023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/core/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 32db023

Please sign in to comment.