def tag_log
import cswap-bend-cli@0.1.0.0/daemon/live.bend as Liveimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
128# The log line with the profile and strategy added, when a profile is in force.
129def tag_log(+m: Maybe<&2, Tag>, +j: Json.Json) -> Json.Json:
130 match m:
131 case Some{Tag{p, s}}:
132 Json.set("strategy", Json.JStr{s}, Json.set("profile", Json.JStr{p}, j))
133 case None{}:
134 j