Skip to content

Commit

Permalink
libdeng2: LOG_DEV_TRACE messages omitted completely in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 3, 2012
1 parent 81bb1e6 commit 390525b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doomsday/libdeng2/include/de/core/log.h
Expand Up @@ -56,11 +56,12 @@
/**
* Makes a developer-only TRACE level log entry. Only enabled in debug builds;
* use this for internal messages that are only useful to / understood by
* developers when debugging.
* developers when debugging. (Note that parameters differ compared to the
* normal LOG_* macros.)
*/
# define LOG_DEV_TRACE(str) LOG().enter(de::Log::TRACE, str)
# define LOG_DEV_TRACE(form, args) LOG().enter(de::Log::TRACE, form) << args
#else
# define LOG_DEV_TRACE(str) LOG().throwaway()
# define LOG_DEV_TRACE(form, args)
#endif

#define LOG_TRACE(str) LOG().enter(de::Log::TRACE, str)
Expand Down

0 comments on commit 390525b

Please sign in to comment.