Commit d9c02268899419fbad3c7743cc011bc1146c843e
1 parent
9dd4c982b8
Exists in
master
fixed PrintAndTrace not passing full var args list
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
main.go
... | ... | @@ -126,8 +126,8 @@ func (l *Logger) Trace(format string, v ...interface{}) { |
126 | 126 | |
127 | 127 | // PrintAndTrace ... |
128 | 128 | func (l *Logger) PrintAndTrace(format string, v ...interface{}) { |
129 | - l.Print(format, v) | |
130 | - l.Trace(format, v) | |
129 | + l.Print(format, v...) | |
130 | + l.Trace(format, v...) | |
131 | 131 | } |
132 | 132 | |
133 | 133 | // LogHTTPRequest ... | ... | ... |