From d8d148e0eec460157958c94a14be51ee4a13c691 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Sat, 22 Jan 2011 01:24:30 +0000 Subject: Make "log enable -v" work. We were only checking the log's stream's verbosity, not the log's verbosity... llvm-svn: 124013 --- lldb/source/Core/Log.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Core/Log.cpp') 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; -- cgit v1.2.3