remove accesslog requests json file

as requested at #2046
This commit is contained in:
Gerasimos (Makis) Maropoulos 2023-01-24 23:52:32 +02:00
parent 717440c97a
commit 77cd3f5be6
No known key found for this signature in database
GPG Key ID: B9839E9CD30B7B6B
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
BSD 3-Clause License
Copyright (c) 2016-2022, Gerasimos (Makis) Maropoulos
Copyright (c) 2016-2023, Gerasimos (Makis) Maropoulos
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -20,7 +20,6 @@ import (
"github.com/kataras/iris/v12/core/netutil"
"github.com/kataras/iris/v12/core/router"
"github.com/kataras/iris/v12/i18n"
"github.com/kataras/iris/v12/middleware/accesslog"
"github.com/kataras/iris/v12/middleware/cors"
"github.com/kataras/iris/v12/middleware/recover"
"github.com/kataras/iris/v12/middleware/requestid"
@ -146,6 +145,7 @@ func Default() *Application {
app.logger.SetLevel("debug")
app.logger.Debugf(`Log level set to "debug"`)
/* #2046.
// Register the accesslog middleware.
logFile, err := os.OpenFile("./access.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o600)
if err == nil {
@ -161,6 +161,7 @@ func Default() *Application {
app.UseRouter(ac.Handler)
app.logger.Debugf("Using <%s> to log requests", logFile.Name())
}
*/
// Register the requestid middleware
// before recover so current Context.GetID() contains the info on panic logs.