Commit dd81c37f authored by mapeiqi's avatar mapeiqi Committed by Brad Fitzpatrick

log: fix comment

I just want to experience the whole Gerrit Flow, so I make this simple commit
as my first commit to golang src repo.

Change-Id: Ie744573beac7a8b9361f898fac269c9d88010493
Reviewed-on: https://go-review.googlesource.com/48630Reviewed-by: default avatarMa Peiqi <mapeiqi2017@gmail.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 87d5f6b9
...@@ -157,7 +157,7 @@ func (l *Logger) Output(calldepth int, s string) error { ...@@ -157,7 +157,7 @@ func (l *Logger) Output(calldepth int, s string) error {
l.mu.Lock() l.mu.Lock()
defer l.mu.Unlock() defer l.mu.Unlock()
if l.flag&(Lshortfile|Llongfile) != 0 { if l.flag&(Lshortfile|Llongfile) != 0 {
// release lock while getting caller info - it's expensive. // Release lock while getting caller info - it's expensive.
l.mu.Unlock() l.mu.Unlock()
var ok bool var ok bool
_, file, line, ok = runtime.Caller(calldepth) _, file, line, ok = runtime.Caller(calldepth)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment