@@ -1390,7 +1390,7 @@ void DerivationGoal::tryToBuild()
13901390 bool buildLocally = buildMode != bmNormal || drv->willBuildLocally ();
13911391
13921392 auto started = [&]() {
1393- act = std::make_unique<Activity>(*logger, actBuild,
1393+ act = std::make_unique<Activity>(*logger, lvlInfo, actBuild,
13941394 fmt (" building '%s'" , drvPath), Logger::Fields{drvPath});
13951395 mcRunningBuilds = std::make_unique<MaintainCount<uint64_t >>(worker.runningBuilds );
13961396 worker.updateProgress ();
@@ -2419,12 +2419,13 @@ struct BuilderLogger : Logger
24192419 prevLogger.log (lvl, fs);
24202420 }
24212421
2422- void startActivity (ActivityId act, ActivityType type,
2422+ void startActivity (ActivityId act, Verbosity lvl, ActivityType type,
24232423 const std::string & s, const Fields & fields, ActivityId parent) override
24242424 {
24252425 nlohmann::json json;
24262426 json[" action" ] = " start" ;
24272427 json[" id" ] = act;
2428+ json[" level" ] = lvl;
24282429 json[" type" ] = type;
24292430 json[" text" ] = s;
24302431 addFields (json, fields);
@@ -3339,7 +3340,8 @@ void DerivationGoal::flushLine()
33393340 if (type == actDownload)
33403341 builderActivities.emplace (std::piecewise_construct,
33413342 std::forward_as_tuple (json[" id" ]),
3342- std::forward_as_tuple (*logger, type, json[" text" ], getFields (json[" fields" ]), act->id ));
3343+ std::forward_as_tuple (*logger, (Verbosity) json[" level" ], type,
3344+ json[" text" ], getFields (json[" fields" ]), act->id ));
33433345 }
33443346
33453347 else if (action == " stop" )
@@ -3686,7 +3688,7 @@ void SubstitutionGoal::tryToRun()
36863688 /* Wake up the worker loop when we're done. */
36873689 Finally updateStats ([this ]() { outPipe.writeSide = -1 ; });
36883690
3689- Activity act (*logger, actSubstitute, " " , Logger::Fields{storePath, sub->getUri ()});
3691+ Activity act (*logger, actSubstitute, Logger::Fields{storePath, sub->getUri ()});
36903692 PushActivity pact (act.id );
36913693
36923694 copyStorePath (ref<Store>(sub), ref<Store>(worker.store .shared_from_this ()),
0 commit comments