init logger

This commit is contained in:
Hoang 2021-11-16 12:16:06 +07:00
parent ba3b0104ff
commit 79b32fa209
2 changed files with 4 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func (s Service) CreatePermission(payload model.PermissionCreateOptions) (id str
if err != nil {
return
}
cache.Roles()
return
}

View File

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