mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
shared/logger/toplevel: The toplevel AddContext should use the top level logger
Rather than accept an argument, to avoid confusion. Because it is using the top level logger as the basis for the new logger and not using the passed in logger. Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
This commit is contained in:
parent
d4f88a91d3
commit
421eda293d
@ -65,6 +65,6 @@ func Panicf(format string, args ...any) {
|
||||
}
|
||||
|
||||
// AddContext returns a new logger with the context added.
|
||||
func AddContext(logger Logger, ctx Ctx) Logger {
|
||||
func AddContext(ctx Ctx) Logger {
|
||||
return Log.AddContext(ctx)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user