git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #918 from oauth2-proxy/fix-log-caller

Fix log header output

commit430355b203c9a1929618676c560e19e8e3c7b504 authorJoel Speed <Joel.speed@hotmail.co.uk> dateThu 19 Nov 2020, 10:18 (6 years ago) parentc3774663a46604
2 files changed+2−1
CHANGELOG.md+1 pkg/logger/logger.go+1−1
CHANGELOG.md+1
@@ -43,6 +43,7 @@
4343
4444## Changes since v6.1.1
4545
46+- [#918](https://github.com/oauth2-proxy/oauth2-proxy/pull/918) Fix log header output (@JoelSpeed)
4647- [#911](https://github.com/oauth2-proxy/oauth2-rpoxy/pull/911) Validate provider type on startup.
4748- [#906](https://github.com/oauth2-proxy/oauth2-proxy/pull/906) Set up v6.1.x versioned documentation as default documentation (@JoelSpeed)
4849- [#905](https://github.com/oauth2-proxy/oauth2-proxy/pull/905) Remove v5 legacy sessions support (@NickMeves)
pkg/logger/logger.go+1−1
@@ -162,7 +162,7 @@ func (l *Logger) Output(lvl Level, calldepth int, message string) {
162162 if !l.stdEnabled {
163163 return
164164 }
165− msg := l.formatLogMessage(calldepth, message)
165+ msg := l.formatLogMessage(calldepth+1, message)
166166
167167 var err error
168168 switch lvl {