From 79b32fa209c167fd03795d8858aa641a72612834 Mon Sep 17 00:00:00 2001 From: Hoang Date: Tue, 16 Nov 2021 12:16:06 +0700 Subject: [PATCH] init logger --- action.go | 2 +- usermngmt.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/action.go b/action.go index dd8f348..0eb7e1f 100644 --- a/action.go +++ b/action.go @@ -93,7 +93,7 @@ func (s Service) CreatePermission(payload model.PermissionCreateOptions) (id str if err != nil { return } - + cache.Roles() return } diff --git a/usermngmt.go b/usermngmt.go index 2d1bf62..a3c1d9a 100644 --- a/usermngmt.go +++ b/usermngmt.go @@ -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)