fix g.Log()的使用

This commit is contained in:
maxbad
2023-05-07 22:35:29 +08:00
parent e8a0a41cb4
commit 67a0a38fd4
10 changed files with 16 additions and 16 deletions

View File

@@ -37,7 +37,7 @@ func SetAdapter(ctx context.Context) {
if conf == nil {
conf = new(model.CacheConfig)
g.Log().Infof(ctx, "no cache driver is configured. default memory cache is used.")
g.Log().Info(ctx, "no cache driver is configured. default memory cache is used.")
}
switch conf.Adapter {
@@ -45,7 +45,7 @@ func SetAdapter(ctx context.Context) {
adapter = gcache.NewAdapterRedis(g.Redis())
case "file":
if conf.FileDir == "" {
g.Log().Fatalf(ctx, "file path must be configured for file caching.")
g.Log().Fatal(ctx, "file path must be configured for file caching.")
return
}