From 691f9080ab38c907f5e3a67390723920413c1d53 Mon Sep 17 00:00:00 2001 From: Hoang Date: Wed, 24 Nov 2021 16:26:03 +0700 Subject: [PATCH] add logger init --- devicemngt.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devicemngt.go b/devicemngt.go index bf5de05..f64e97b 100644 --- a/devicemngt.go +++ b/devicemngt.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" + "github.com/Selly-Modules/logger" "github.com/Selly-Modules/mongodb" "go.mongodb.org/mongo-driver/mongo" ) @@ -54,6 +55,8 @@ func Init(config Config) (*Service, error) { return nil, err } + logger.Init(fmt.Sprintf("%s-devicemngmt", config.TablePrefix), "") + s = &Service{ Config: config, DB: db,