aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/logging.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-08-24 22:36:40 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-08-24 22:36:40 +0200
commitbb411e4ae16d6a5c61ea595c0c12e2ecee081ff9 (patch)
tree7a9163161dd3329ec7bbf5bf20d7700f718a5050 /src/libutil/logging.hh
parent5b8a53fb4909643c61285f7728c8ee3a990d85a1 (diff)
Fix progress bar flicker with -L
This was caused by -L calling setLogFormat() again, which caused the creation of a new progress bar without destroying the old one. So we had two progress bars clobbering each other. We should change 'logger' to be a smart pointer, but I'll do that in a future PR. Fixes #6931.
Diffstat (limited to 'src/libutil/logging.hh')
-rw-r--r--src/libutil/logging.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh
index 6f81b92de..d0817b4a9 100644
--- a/src/libutil/logging.hh
+++ b/src/libutil/logging.hh
@@ -111,6 +111,9 @@ public:
virtual std::optional<char> ask(std::string_view s)
{ return {}; }
+
+ virtual void setPrintBuildLogs(bool printBuildLogs)
+ { }
};
ActivityId getCurActivity();