diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-07-02 09:04:31 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-07-02 09:04:31 -0600 |
commit | bf2788e4c1d92a8d625f016b2a3b4d34990f33e3 (patch) | |
tree | e97552c393a7e0bc4544020869f65486e9f2e8ec /src/libmain/progress-bar.cc | |
parent | 5ae498872a832b0df93b551210f0a3a8b6ffaa35 (diff) |
move showTrace to new loggerSettings
Diffstat (limited to 'src/libmain/progress-bar.cc')
-rw-r--r-- | src/libmain/progress-bar.cc | 10 |
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) { |