aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/error.cc
diff options
context:
space:
mode:
authorAlexander Bantyev <balsoft@balsoft.ru>2021-12-28 15:53:21 +0300
committerAlexander Bantyev <balsoft@balsoft.ru>2021-12-28 15:53:21 +0300
commit581f774284fa1b833255218165f4c958fe741500 (patch)
tree7591103c482e084581ac3f5205ae6c35991e57d6 /src/libutil/error.cc
parent0e90b13ab1df925e549b5d55853b65911b4b40d3 (diff)
BaseError::calcWhat: take loggerSettings.showTrace into account
Text representation for errors should include the trace if --show-trace is passed.
Diffstat (limited to 'src/libutil/error.cc')
-rw-r--r--src/libutil/error.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/error.cc b/src/libutil/error.cc
index 203d79087..dd9678ee7 100644
--- a/src/libutil/error.cc
+++ b/src/libutil/error.cc
@@ -25,7 +25,7 @@ const string & BaseError::calcWhat() const
err.name = sname();
std::ostringstream oss;
- showErrorInfo(oss, err, false);
+ showErrorInfo(oss, err, loggerSettings.showTrace);
what_ = oss.str();
return *what_;