summaryrefslogtreecommitdiff
path: root/lldb/source/Core/Log.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2011-01-22 01:24:30 +0000
committerJim Ingham <jingham@apple.com>2011-01-22 01:24:30 +0000
commitd8d148e0eec460157958c94a14be51ee4a13c691 (patch)
treee2a5476190d2963821a5b4151b0c380acf03d9c8 /lldb/source/Core/Log.cpp
parent50646ab3e1e2fb7b31df5d8dbaa339ad7742345f (diff)
Make "log enable -v" work. We were only checking the log's stream's verbosity, not the log's verbosity...
llvm-svn: 124013
Diffstat (limited to 'lldb/source/Core/Log.cpp')
-rw-r--r--lldb/source/Core/Log.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/Log.cpp b/lldb/source/Core/Log.cpp
index eaa8c7593286..ceead5838f76 100644
--- a/lldb/source/Core/Log.cpp
+++ b/lldb/source/Core/Log.cpp
@@ -442,6 +442,10 @@ Log::ListAllLogChannels (Stream *strm)
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;