mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
move showTrace to new loggerSettings
This commit is contained in:
parent
5ae498872a
commit
bf2788e4c1
10 changed files with 35 additions and 57 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue