Provide default value for logConfig

This commit is contained in:
Yang Luo 2023-06-10 15:59:56 +08:00
parent e0d2bc3dc9
commit 2d04731622

View File

@ -66,6 +66,8 @@ func GetConfigString(key string) string {
if res == "" {
if key == "staticBaseUrl" {
res = "https://cdn.casbin.org"
} else if key == "logConfig" {
res = "{\"filename\": \"logs/casdoor.log\", \"maxdays\":99999, \"perm\":\"0770\"}"
}
}