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,