diff options
Diffstat (limited to 'src/server/shared/Logging/Log.cpp')
-rw-r--r-- | src/server/shared/Logging/Log.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/shared/Logging/Log.cpp b/src/server/shared/Logging/Log.cpp index 3856769cbae..500701d0491 100644 --- a/src/server/shared/Logging/Log.cpp +++ b/src/server/shared/Logging/Log.cpp @@ -734,6 +734,18 @@ void Log::outDebug(const char * str, ...) fflush(stdout); } +void Log::outStaticDebug(const char * fmt, ...) +{ + #ifdef TRINITY_DEBUG + va_list ap; + char str[2048]; + va_start(ap, str); + vsnprintf(str, 2048, fmt, ap); + va_end(ap); + outDebug(str); + #endif +} + void Log::outStringInLine(const char * str, ...) { if (!str) |