mirror of
https://github.com/NixOS/nix.git
synced 2025-11-21 17:59:36 +01:00
Log fast builds/substitutions with a lower priority
This commit is contained in:
parent
101b15663b
commit
491ba8d1c4
2 changed files with 4 additions and 4 deletions
|
|
@ -1004,9 +1004,9 @@ void DerivationGoal::buildDone()
|
|||
auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(stopTime - startTime).count() / 1000.0;
|
||||
|
||||
// FIXME: associate with activity 'act'.
|
||||
notice(ANSI_BOLD ANSI_GREEN "Built" ANSI_NORMAL " '%s' in %s%.1f s" ANSI_NORMAL ".",
|
||||
printMsg(duration > 0.2 ? lvlNotice : lvlInfo,
|
||||
ANSI_BOLD ANSI_GREEN "Built" ANSI_NORMAL " '%s' in %.1f s.",
|
||||
worker.store.printStorePath(drvPath),
|
||||
duration > 0.5 ? ANSI_BOLD : ANSI_NORMAL,
|
||||
duration);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -288,9 +288,9 @@ void SubstitutionGoal::finished()
|
|||
auto duration = std::chrono::duration_cast<std::chrono::milliseconds>(stopTime - startTime).count() / 1000.0;
|
||||
|
||||
// FIXME: associate with activity 'act'.
|
||||
notice(ANSI_BOLD ANSI_GREEN "Substituted" ANSI_NORMAL " '%s' in %s%.1f s" ANSI_NORMAL ".",
|
||||
printMsg(duration > 0.2 ? lvlNotice : lvlInfo,
|
||||
ANSI_BOLD ANSI_GREEN "Substituted" ANSI_NORMAL " '%s' in %.1f s.",
|
||||
worker.store.printStorePath(storePath),
|
||||
duration > 0.5 ? ANSI_BOLD : ANSI_NORMAL,
|
||||
duration);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue