aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/shared.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-07-02 09:04:31 -0600
committerBen Burdette <bburdette@gmail.com>2020-07-02 09:04:31 -0600
commitbf2788e4c1d92a8d625f016b2a3b4d34990f33e3 (patch)
treee97552c393a7e0bc4544020869f65486e9f2e8ec /src/libmain/shared.cc
parent5ae498872a832b0df93b551210f0a3a8b6ffaa35 (diff)
move showTrace to new loggerSettings
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r--src/libmain/shared.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 5cbdd19e5..52718c231 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -323,9 +323,8 @@ int handleExceptions(const string & programName, std::function<void()> fun)
printError("Try '%1% --help' for more information.", programName);
return 1;
} catch (BaseError & e) {
- logger->setShowTrace(settings.showTrace);
logError(e.info());
- if (e.hasTrace() && !settings.showTrace)
+ if (e.hasTrace() && !loggerSettings.showTrace.get())
printError("(use '--show-trace' to show detailed location information)");
return e.status;
} catch (std::bad_alloc & e) {