]> git.mxchange.org Git - simgear.git/commitdiff
Ensure individual log-level setting works.
authorJames Turner <zakalawe@mac.com>
Fri, 8 Feb 2013 20:17:27 +0000 (20:17 +0000)
committerJames Turner <zakalawe@mac.com>
Fri, 8 Feb 2013 20:17:27 +0000 (20:17 +0000)
simgear/debug/logstream.cxx

index 4de13f0c06950efd051b93a05d05e74175d4e181..1c798d808558952a09e2bfc19106cb31f60bb8ea 100644 (file)
@@ -334,13 +334,13 @@ logstream::get_log_priority() const
 void
 logstream::set_log_priority( sgDebugPriority p)
 {
-    global_privateLogstream->m_logPriority = p;
+    global_privateLogstream->setLogLevels(global_privateLogstream->m_logClass, p);
 }
     
 void
 logstream::set_log_classes( sgDebugClass c)
 {
-    global_privateLogstream->m_logClass = c;
+    global_privateLogstream->setLogLevels(c, global_privateLogstream->m_logPriority);
 }
 
 logstream&