From 3c147b3e4ca41d3886c6c1d9e0352347b8cfd6de Mon Sep 17 00:00:00 2001 From: balki <3070606-balki@users.noreply.gitlab.com> Date: Mon, 20 Jun 2022 16:13:06 -0400 Subject: [PATCH] add logger to all packages --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 3f3c65c..2e13f98 100644 --- a/main.go +++ b/main.go @@ -4,13 +4,18 @@ import ( "flag" "go.balki.me/tss/app" + "go.balki.me/tss/db" "go.balki.me/tss/log" "go.balki.me/tss/schedule" + "go.balki.me/tss/telegram" ) func main() { logger := log.GetZapLogger() + + db.SetLogger(logger.WithName("db")) schedule.SetLogger(logger.WithName("schedule")) + telegram.SetLogger(logger.WithName("telegram")) app.SetLogger(logger.WithName("app")) var configPath string