================
@@ -25,10 +25,14 @@ PolicyStack &PolicyStack::Get() {
 
 Policy PolicyStack::Current() const {
   Policy p = m_stack.back();
-  if (Log *log = GetLog(LLDBLog::Process)) {
+  // `Current()` is called on every read of the current policy (e.g. every
+  // `Process::GetState()`, itself called on every prompt redraw), so log
+  // only when verbose is set to avoid drowning out the process log.
+  Log *log = GetLog(LLDBLog::Process);
+  if (log && log->GetVerbose()) {
----------------
JDevlieghere wrote:

```suggestion
  if (Log *log = GetLog(LLDBLog::Process)) {
    if (log->GetVerbose()) {
```

https://github.com/llvm/llvm-project/pull/209527
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to