From e827fb8049abb77f532ba63b18e53953c694db24 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 14 Jan 2025 10:41:38 +0300 Subject: [PATCH] refactor: use context logger --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 0e7cce8..aa8f781 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -25,7 +25,6 @@ import ( "sync" "github.com/pelletier/go-toml/v2" - "go.elara.ws/logger/log" "plemya-x.ru/alr/internal/types" "plemya-x.ru/alr/pkg/loggerctx" ) @@ -43,6 +42,7 @@ func New() *ALRConfig { } func (c *ALRConfig) Load(ctx context.Context) { + log := loggerctx.From(ctx) cfgFl, err := os.Open(c.GetPaths(ctx).ConfigPath) if err != nil { log.Warn("Error opening config file, using defaults").Err(err).Send()