mirror of
https://github.com/kataras/iris.git
synced 2026-01-05 11:17:03 +00:00
:)
This commit is contained in:
2
iris.go
2
iris.go
@@ -142,7 +142,7 @@ func Default() *Application {
|
||||
app.logger.Debugf(`Log level set to "debug"`)
|
||||
|
||||
// Register the accesslog middleware.
|
||||
logFile, err := os.OpenFile("./access.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
|
||||
logFile, err := os.OpenFile("./access.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0600)
|
||||
if err == nil {
|
||||
// Close the file on shutdown.
|
||||
app.ConfigureHost(func(su *Supervisor) {
|
||||
|
||||
Reference in New Issue
Block a user