From 77cd3f5be613a0d57e7e1cb36c152fea6dc88603 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 24 Jan 2023 23:52:32 +0200 Subject: [PATCH] remove accesslog requests json file as requested at #2046 --- LICENSE | 2 +- iris.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 81f37db6..de4e4a3e 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/iris.go b/iris.go index c40f6a2c..412cbeff 100644 --- a/iris.go +++ b/iris.go @@ -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.