[Lldb-commits] [lldb] r124013 - /lldb/trunk/source/Core/Log.cpp

Jim Ingham jingham at apple.com
Fri Jan 21 17:24:30 PST 2011


Author: jingham
Date: Fri Jan 21 19:24:30 2011
New Revision: 124013

URL: http://llvm.org/viewvc/llvm-project?rev=124013&view=rev
Log:
Make "log enable -v" work.  We were only checking the log's stream's verbosity, not the log's verbosity...

Modified:
    lldb/trunk/source/Core/Log.cpp

Modified: lldb/trunk/source/Core/Log.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Log.cpp?rev=124013&r1=124012&r2=124013&view=diff
==============================================================================
--- lldb/trunk/source/Core/Log.cpp (original)
+++ lldb/trunk/source/Core/Log.cpp Fri Jan 21 19:24:30 2011
@@ -442,6 +442,10 @@
 bool
 Log::GetVerbose() const
 {
+    // FIXME: This has to be centralized between the stream and the log...
+    if (m_options.Test(LLDB_LOG_OPTION_VERBOSE))
+        return true;
+        
     if (m_stream_sp)
         return m_stream_sp->GetVerbose();
     return false;





More information about the lldb-commits mailing list