Record stacktraces when logging errors in gitea

Gitea has added a STACKTRACE_LEVEL config option to set which log level
will also generate stack traces when logging. We want them for at least
Error and above so set this to Error for now. In particular there seems
to be a commit cache issue which results in errors that having stack
traces for would be helpful to debug.

Change-Id: I0491373ef143dfa753c011d02e3c670c699d2a52
This commit is contained in:
Clark Boylan 2020-09-30 10:04:49 -07:00
parent e764a59877
commit 941f746767

View File

@ -52,6 +52,7 @@ PATH = /data/gitea/attachments
[log]
ROOT_PATH = /logs
LEVEL = Info
STACKTRACE_LEVEL = Error
ENABLE_ACCESS_LOG = true
{% raw %}
ACCESS_LOG_TEMPLATE = {{.Ctx.Req.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}}"