aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/progress-bar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmain/progress-bar.cc')
-rw-r--r--src/libmain/progress-bar.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libmain/progress-bar.cc b/src/libmain/progress-bar.cc
index 265b16908..3f7d99a1d 100644
--- a/src/libmain/progress-bar.cc
+++ b/src/libmain/progress-bar.cc
@@ -81,14 +81,12 @@ private:
bool printBuildLogs;
bool isTTY;
- bool showTrace;
public:
ProgressBar(bool printBuildLogs, bool isTTY)
: printBuildLogs(printBuildLogs)
, isTTY(isTTY)
- , showTrace(false)
{
state_.lock()->active = isTTY;
updateThread = std::thread([&]() {
@@ -133,16 +131,10 @@ public:
auto state(state_.lock());
std::stringstream oss;
- showErrorInfo(oss, ei, showTrace);
+ showErrorInfo(oss, ei, loggerSettings.showTrace.get());
log(*state, ei.level, oss.str());
}
- bool getShowTrace() const override {
- return showTrace;
- }
- void setShowTrace(bool showTrace) override {
- this->showTrace = showTrace;
- }
void log(State & state, Verbosity lvl, const std::string & s)
{