init logger
This commit is contained in:
parent
ba3b0104ff
commit
79b32fa209
|
@ -93,7 +93,7 @@ func (s Service) CreatePermission(payload model.PermissionCreateOptions) (id str
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
cache.Roles()
|
||||
return
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/Selly-Modules/logger"
|
||||
"github.com/Selly-Modules/mongodb"
|
||||
"github.com/Selly-Modules/usermngmt/cache"
|
||||
"github.com/Selly-Modules/usermngmt/database"
|
||||
|
@ -55,6 +56,8 @@ func Init(config Config) (*Service, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
logger.Init("usermngmt", "")
|
||||
|
||||
// Set database
|
||||
database.Set(db, config.TablePrefix)
|
||||
|
||||
|
|
Loading…
Reference in New Issue