diff options
author | megamage <none@none> | 2009-08-19 17:02:29 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-19 17:02:29 -0500 |
commit | f5085b2f39c91ed0103c79d95f8d18a4ef2a6371 (patch) | |
tree | cba9f8c0706f9db972cb915d27ee9e7fd3daf1d5 /src/shared/Log.cpp | |
parent | d7e4392f796f5624a75216f64ae7520c00439cb9 (diff) |
[8388] Replaced UTF8PRINT macro by a function
Should also fix possible color leak on Windows CLI.
Signed-off-by: freghar <compmancz@gmail.com>
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Log.cpp')
-rw-r--r-- | src/shared/Log.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp index 8de6e635dec..32483486628 100644 --- a/src/shared/Log.cpp +++ b/src/shared/Log.cpp @@ -388,7 +388,7 @@ void Log::outString( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_NORMAL]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -438,7 +438,7 @@ void Log::outCrash( const char * err, ... ) if(m_colored) SetColor(false,RED); - UTF8PRINTF(stderr,err,); + utf8printf(stdout, err); if(m_colored) ResetColor(false); @@ -478,7 +478,7 @@ void Log::outError( const char * err, ... ) if(m_colored) SetColor(false,RED); - UTF8PRINTF(stderr,err,); + utf8printf(stderr, err); if(m_colored) ResetColor(false); @@ -526,7 +526,7 @@ void Log::outErrorDb( const char * err, ... ) if(m_colored) SetColor(false,RED); - UTF8PRINTF(stderr,err,); + utf8printf(stderr, err); if(m_colored) ResetColor(false); @@ -581,7 +581,7 @@ void Log::outBasic( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_BASIC]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -622,7 +622,7 @@ void Log::outDetail( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_DETAIL]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -650,7 +650,7 @@ void Log::outDebugInLine( const char * str, ... ) if( m_logLevel > LOGL_DETAIL ) { - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); } if(logfile && m_logFileLevel > LOGL_DETAIL) { @@ -681,7 +681,7 @@ void Log::outDebug( const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_DEBUG]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); @@ -707,7 +707,7 @@ void Log::outStringInLine( const char * str, ... ) if( !str ) return; - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(logfile) { @@ -739,7 +739,7 @@ void Log::outCommand( uint32 account, const char * str, ... ) if(m_colored) SetColor(true,m_colors[LOGL_BASIC]); - UTF8PRINTF(stdout,str,); + utf8printf(stdout, str); if(m_colored) ResetColor(true); |