From 7177fe8211c00275480d6cb2d79b01f84aceadab Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Mon, 20 Jun 2022 15:49:55 -0400 Subject: [PATCH] fix logger --- app/app.go | 4 ++-- db/db.go | 4 ++-- schedule/schedule.go | 4 ++-- telegram/telegram.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/app.go b/app/app.go index e5eda35..d0a5abd 100644 --- a/app/app.go +++ b/app/app.go @@ -16,8 +16,8 @@ import ( var log = logr.Discard() -func SetLogger(log logr.Logger) { - log = log +func SetLogger(l logr.Logger) { + log = l } func Run(configPath string) error { diff --git a/db/db.go b/db/db.go index 7d05550..55b80ba 100644 --- a/db/db.go +++ b/db/db.go @@ -15,8 +15,8 @@ import ( var log = logr.Discard() -func SetLogger(log logr.Logger) { - log = log +func SetLogger(l logr.Logger) { + log = l } type Status string diff --git a/schedule/schedule.go b/schedule/schedule.go index baa58e4..0b85b48 100644 --- a/schedule/schedule.go +++ b/schedule/schedule.go @@ -14,8 +14,8 @@ import ( var log = logr.Discard() -func SetLogger(log logr.Logger) { - log = log +func SetLogger(l logr.Logger) { + log = l } type Scheduler interface { diff --git a/telegram/telegram.go b/telegram/telegram.go index e280b3f..8c84341 100644 --- a/telegram/telegram.go +++ b/telegram/telegram.go @@ -16,8 +16,8 @@ import ( var log = logr.Discard() -func SetLogger(log logr.Logger) { - log = log +func SetLogger(l logr.Logger) { + log = l } type TelegramSender interface {