add logger init
This commit is contained in:
parent
bff00bfa84
commit
691f9080ab
|
@ -4,6 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/Selly-Modules/logger"
|
||||||
"github.com/Selly-Modules/mongodb"
|
"github.com/Selly-Modules/mongodb"
|
||||||
"go.mongodb.org/mongo-driver/mongo"
|
"go.mongodb.org/mongo-driver/mongo"
|
||||||
)
|
)
|
||||||
|
@ -54,6 +55,8 @@ func Init(config Config) (*Service, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Init(fmt.Sprintf("%s-devicemngmt", config.TablePrefix), "")
|
||||||
|
|
||||||
s = &Service{
|
s = &Service{
|
||||||
Config: config,
|
Config: config,
|
||||||
DB: db,
|
DB: db,
|
||||||
|
|
Loading…
Reference in New Issue