From 6f4ba8bb0d794c253b5b15793615cbfd272acc0c Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Wed, 25 Mar 2009 15:55:00 +0100 Subject: * Implement Log::outString that takes no arguments and just prints \n - on request from megamage (makes MaNGOS merging easier). --HG-- branch : trunk --- src/shared/Log.cpp | 12 ++++++++++++ src/shared/Log.h | 1 + 2 files changed, 13 insertions(+) (limited to 'src') diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 401394af1a5..e79ea12933d 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -404,6 +404,18 @@ void Log::outString( const char * str, ... ) fflush(stdout); } +void Log::outString( ) +{ + printf( "\n" ); + if(logfile) + { + outTimestamp(logfile); + fprintf(logfile, "\n" ); + fflush(logfile); + } + fflush(stdout); +} + void Log::outCrash( const char * err, ... ) { if( !err ) diff --git a/src/shared/Log.h b/src/shared/Log.h index a0220b1bce7..78261470174 100644 --- a/src/shared/Log.h +++ b/src/shared/Log.h @@ -97,6 +97,7 @@ class Log : public Trinity::Singleton