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
|
|
@ -126,9 +126,12 @@ public:
|
|||
update(state);
|
||||
}
|
||||
|
||||
void startActivity(ActivityId act, ActivityType type, const std::string & s,
|
||||
const Fields & fields, ActivityId parent) override
|
||||
void startActivity(ActivityId act, Verbosity lvl, ActivityType type,
|
||||
const std::string & s, const Fields & fields, ActivityId parent) override
|
||||
{
|
||||
if (lvl <= verbosity && !s.empty())
|
||||
log(lvl, s + "...");
|
||||
|
||||
auto state(state_.lock());
|
||||
|
||||
state->activities.emplace_back(ActInfo());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue