mirror of
https://github.com/NixOS/nix.git
synced 2025-12-06 00:51:00 +01:00
DebugStackTracker class in one place
This commit is contained in:
parent
f317019edd
commit
b4a59a5eec
7 changed files with 96 additions and 2 deletions
|
|
@ -221,6 +221,8 @@ static std::string indent(std::string_view indentFirst, std::string_view indentR
|
|||
|
||||
std::ostream & showErrorInfo(std::ostream & out, const ErrorInfo & einfo, bool showTrace)
|
||||
{
|
||||
std::cout << "showErrorInfo showTrace: " << showTrace << std::endl;
|
||||
|
||||
std::string prefix;
|
||||
switch (einfo.level) {
|
||||
case Verbosity::lvlError: {
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ typedef uint64_t ActivityId;
|
|||
struct LoggerSettings : Config
|
||||
{
|
||||
Setting<bool> showTrace{
|
||||
// this, false, "show-trace",
|
||||
this, false, "show-trace",
|
||||
R"(
|
||||
Where Nix should print out a stack trace in case of Nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue