1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 09:49:36 +01:00

Log fast builds/substitutions with a lower priority

This commit is contained in:
Eelco Dolstra 2020-11-27 12:17:17 +01:00
parent 101b15663b
commit 491ba8d1c4
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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);
}