Skip to content

Commit

Permalink
fix: log file permission (#297)
Browse files Browse the repository at this point in the history
Signed-off-by: chinggg <24590067+chinggg@users.noreply.github.com>
  • Loading branch information
chinggg committed Sep 21, 2021
1 parent a04f669 commit 7582ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
beego.BConfig.WebConfig.Session.SessionCookieLifeTime = 3600 * 24 * 30
//beego.BConfig.WebConfig.Session.SessionCookieSameSite = http.SameSiteNoneMode

err := logs.SetLogger("file", `{"filename":"logs/casdoor.log","maxdays":99999}`)
err := logs.SetLogger("file", `{"filename":"logs/casdoor.log","maxdays":99999,"perm":"0770"}`)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 7582ba0

Please sign in to comment.