From dfd5bda05eecc673e5bf03c3fa14f98ce60b8887 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 23 Mar 2007 10:59:07 +0000 Subject: [PATCH] Don't spew userlog to stdout. --- stepmania/src/RageLog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index 6ea8a0d143..92379e8071 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -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() )