mirror of
https://github.com/NixOS/nix
synced 2025-06-26 15:51:15 +02:00
Give activities a verbosity level again
And print them (separately from the progress bar) given sufficient -v flags.
This commit is contained in:
parent
cfc8132391
commit
2cc345b95f
10 changed files with 41 additions and 19 deletions
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
virtual void warn(const std::string & msg);
|
||||
|
||||
virtual void startActivity(ActivityId act, ActivityType type,
|
||||
virtual void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
|
||||
const std::string & s, const Fields & fields, ActivityId parent) { };
|
||||
|
||||
virtual void stopActivity(ActivityId act) { };
|
||||
|
@ -84,9 +84,13 @@ struct Activity
|
|||
|
||||
const ActivityId id;
|
||||
|
||||
Activity(Logger & logger, ActivityType type, const std::string & s = "",
|
||||
Activity(Logger & logger, Verbosity lvl, ActivityType type, const std::string & s = "",
|
||||
const Logger::Fields & fields = {}, ActivityId parent = curActivity);
|
||||
|
||||
Activity(Logger & logger, ActivityType type,
|
||||
const Logger::Fields & fields = {}, ActivityId parent = curActivity)
|
||||
: Activity(logger, lvlError, type, "", fields, parent) { };
|
||||
|
||||
Activity(const Activity & act) = delete;
|
||||
|
||||
~Activity()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue