From 2eaf8034f7e800d36cb2da46a3a48f0d4fa0011a Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 8 Jun 2020 14:11:00 +0200 Subject: [PATCH] server/gitea: Reconfigured log to be minimal and adapted to systemd --- roles/server/gitea/templates/app.ini | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/roles/server/gitea/templates/app.ini b/roles/server/gitea/templates/app.ini index 30deb4d..914d248 100644 --- a/roles/server/gitea/templates/app.ini +++ b/roles/server/gitea/templates/app.ini @@ -561,14 +561,17 @@ ROOT_PATH = MODE = console ; Buffer length of the channel, keep it as it is if you don't know what it is. BUFFER_LEN = 10000 -REDIRECT_MACARON_LOG = false -MACARON = file +REDIRECT_MACARON_LOG = true +MACARON = , ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info" -ROUTER_LOG_LEVEL = Info -ROUTER = console +ROUTER_LOG_LEVEL = Debug +ROUTER = , ENABLE_ACCESS_LOG = false ACCESS_LOG_TEMPLATE = {% raw %}{{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"{% endraw %} -ACCESS = file +ACCESS = , +ENABLE_XORM_LOG = true +XORM = , + ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace" LEVEL = Info ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None" @@ -583,8 +586,10 @@ COLORIZE = false ; For "console" mode only [log.console] +FLAGS = level LEVEL = STDERR = false +COLORIZE = true ; For "file" mode only [log.file]