mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
Add the ability to disable individual log categories, rather
than just the entire log channel. Add checks, where appropriate, to make sure a log channel/category has not been disabled before attempting to write to it. llvm-svn: 117715
This commit is contained in:
1 parent
4a0c2d73c3
commit
20ad3c40f4
30 files changed
+264
-48
No files matched your search
@@ -469,7 +469,6 @@ SBThread::RunToAddress (lldb::addr_t addr)
|
||||
SBProcess
|
||||
SBThread::GetProcess ()
|
||||
{
|
||||
Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
|
||||
|
||||
SBProcess process;
|
||||
if (m_opaque_sp)
|
||||
@@ -478,6 +477,7 @@ SBThread::GetProcess ()
|
||||
process.SetProcess(m_opaque_sp->GetProcess().GetTarget().GetProcessSP());
|
||||
}
|
||||
|
||||
Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
|
||||
if (log)
|
||||
{
|
||||
SBStream sstr;
|
||||
|
||||
Reference in new issue
Block a user