[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/services
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-07-03 9:47:39
Message-ID: 1151920059.487529.22051.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 557442 by mueller:

work without setup_logging being called


 M  +4 -4      logging.h  


--- trunk/icecream/services/logging.h #557441:557442
@@ -64,22 +64,22 @@
 }
 
 static inline std::ostream& log_info() {
-    assert( logfile_info );
+    if(!logfile_info) return std::cerr;
     return *logfile_info;
 }
 
 static inline std::ostream& log_warning() {
-    assert( logfile_warning );
+    if(!logfile_warning) return std::cerr;
     return output_date( *logfile_warning );
 }
 
 static inline std::ostream& log_error() {
-    assert( logfile_error );
+    if(!logfile_error) return std::cerr;
     return output_date( *logfile_error );
 }
 
 static inline std::ostream& trace() {
-    assert( logfile_trace );
+    if(!logfile_trace) return std::cerr;
     return *logfile_trace;
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic