1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-03-17 21:17:53 +02:00

Fix log calldepth

This commit is contained in:
Joel Speed 2020-11-15 18:46:40 +00:00
parent c377466411
commit 3a4660414a
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@
## Changes since v6.1.1
- [#918](https://github.com/oauth2-proxy/oauth2-proxy/pull/918) Fix log header output (@JoelSpeed)
- [#911](https://github.com/oauth2-proxy/oauth2-rpoxy/pull/911) Validate provider type on startup.
- [#906](https://github.com/oauth2-proxy/oauth2-proxy/pull/906) Set up v6.1.x versioned documentation as default documentation (@JoelSpeed)
- [#905](https://github.com/oauth2-proxy/oauth2-proxy/pull/905) Remove v5 legacy sessions support (@NickMeves)

View File

@ -162,7 +162,7 @@ func (l *Logger) Output(lvl Level, calldepth int, message string) {
if !l.stdEnabled {
return
}
msg := l.formatLogMessage(calldepth, message)
msg := l.formatLogMessage(calldepth+1, message)
var err error
switch lvl {