HomePhabricator

Refactor dologmsg

Description

Refactor dologmsg

This has a few advantages:

  • No need to pass an object meant to be used as a cli helper to a function not related to the cli.
  • Being able to keep the state (the common parameters) and improve reusage. This is done with a frozen dataclass, so it's very similar to a lambda but allows easy type inference (and checks).
  • Add a more detailed name that point to things being logged in SAL.

Bug: T297090
Signed-off-by: David Caro <dcaro@wikimedia.org>
Change-Id: Icdb91dc16b8da78793b3d29556d691fe66915b07
Signed-off-by: David Caro <dcaro@wikimedia.org>

Details

Provenance
dcaroAuthored on Mar 14 2022, 4:08 PM
Parents
rCCKB6f0a068768f8: [buildservice] Add a cookbook to update the needed images
Branches
Unknown
Tags
Unknown
ChangeId
Icdb91dc16b8da78793b3d29556d691fe66915b07