add logger init

This commit is contained in:
Hoang 2021-11-24 16:26:03 +07:00
parent bff00bfa84
commit 691f9080ab
1 changed files with 3 additions and 0 deletions

View File

@ -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,