server/gitea: Reworked logging configuration to contain (only) required information

dehydrated
Felix Stupp 5 years ago
parent 49dd6e4da1
commit 818515cc05
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -165,7 +165,6 @@ SSH_EXPOSE_ANONYMOUS = false
MINIMUM_KEY_SIZE_CHECK = false MINIMUM_KEY_SIZE_CHECK = false
; Disable CDN even in "prod" mode ; Disable CDN even in "prod" mode
OFFLINE_MODE = {{ gitea_server_offline_mode | ternary('true', 'false') }} OFFLINE_MODE = {{ gitea_server_offline_mode | ternary('true', 'false') }}
DISABLE_ROUTER_LOG = false
; Root directory containing templates and static files. ; Root directory containing templates and static files.
; default is the path where Gitea is executed ; default is the path where Gitea is executed
STATIC_ROOT_PATH = STATIC_ROOT_PATH =
@ -560,15 +559,16 @@ ROOT_PATH =
; Use comma to separate multiple modes, e.g. "console, file" ; Use comma to separate multiple modes, e.g. "console, file"
MODE = console MODE = console
; Buffer length of the channel, keep it as it is if you don't know what it is. ; Buffer length of the channel, keep it as it is if you don't know what it is.
BUFFER_LEN = 10000 ;BUFFER_LEN = 10000
REDIRECT_MACARON_LOG = true REDIRECT_MACARON_LOG = true
MACARON = , MACARON = ,
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info" ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info"
ROUTER_LOG_LEVEL = Debug ;ROUTER_LOG_LEVEL = Info
ROUTER = , DISABLE_ROUTER_LOG = true
ENABLE_ACCESS_LOG = false ;ROUTER = ,
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 %} ;ENABLE_ACCESS_LOG = false
ACCESS = , ;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 = ,
ENABLE_XORM_LOG = true ENABLE_XORM_LOG = true
XORM = , XORM = ,
@ -579,7 +579,7 @@ STACKTRACE_LEVEL = None
; For "console" mode only ; For "console" mode only
[log.console] [log.console]
FLAGS = level FLAGS = level,medfile
LEVEL = LEVEL =
STDERR = false STDERR = false
COLORIZE = false COLORIZE = false

Loading…
Cancel
Save