Don't spew userlog to stdout.

This commit is contained in:
Steve Checkoway
2007-03-23 10:59:07 +00:00
parent 899735538b
commit dfd5bda05e
+3 -3
View File
@@ -84,7 +84,7 @@ RageLog::RageLog()
g_fileInfo = new RageFile;
g_fileUserLog = new RageFile;
g_Mutex = new RageMutex("Log");
g_Mutex = new RageMutex( "Log" );
m_bLogToDisk = false;
m_bInfoToDisk = false;
@@ -267,8 +267,8 @@ void RageLog::Write( int where, const RString &sLine )
if( sWarning.size() )
sStr.insert( 0, sWarning );
if( m_bShowLogOutput || where != 0 )
printf("%s\n", sStr.c_str() );
if( m_bShowLogOutput || (where&WRITE_TO_INFO) )
puts( sStr );
if( where & WRITE_TO_INFO )
AddToInfo( sStr );
if( m_bLogToDisk && (where&WRITE_TO_INFO) && g_fileInfo->IsOpen() )