add logger init
This commit is contained in:
parent
bff00bfa84
commit
691f9080ab
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue