summaryrefslogtreecommitdiffstats
path: root/lldb/source/lldb-log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/lldb-log.cpp')
-rw-r--r--lldb/source/lldb-log.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/lldb-log.cpp b/lldb/source/lldb-log.cpp
index c00d2e649e2..12ec3a546e1 100644
--- a/lldb/source/lldb-log.cpp
+++ b/lldb/source/lldb-log.cpp
@@ -156,7 +156,10 @@ lldb_private::DisableLog (const char **categories, Stream *feedback_strm)
}
log->GetMask().Reset (flag_bits);
if (flag_bits == 0)
+ {
+ log->SetStream(lldb::StreamSP());
g_log_enabled = false;
+ }
}
return;
OpenPOWER on IntegriCloud