You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
migrate all bar gitlab-shell to new slog labkit setup
This change utilises the slog.SetDefault(logger) call to
ensure that any subsequent log emissions using slog will use the
LabKit configured setup.
This is really quite useful as it allows us to avoid having to
plumb through the logger into every component within our system.
Whilst this would have been a nicer approach when it comes to testing,
pragmatically, that would have involved a significant code change.
I've tried to walk through that process with other MRs but end up with
a few hundred lines of a delta which I feel is much too risky to
roll out alongside a logger change.
Migrating to this first, and then cleaning up the service to follow
cleaner architectural patterns feels like a less risky approach.
0 commit comments