mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-27 01:29:16 +08:00
Fix godoc comment on LogEntry.Panic
This commit is contained in:
@@ -50,7 +50,7 @@ func (l *LogEntry) Write(status, bytes int, elapsed time.Duration) {
|
|||||||
log.Print(l.buf.String())
|
log.Print(l.buf.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Panic prints the call stack for a panic.
|
// Panic prints the call stack for a panic.
|
||||||
func (l *LogEntry) Panic(v interface{}, stack []byte) {
|
func (l *LogEntry) Panic(v interface{}, stack []byte) {
|
||||||
e := l.NewLogEntry(l.req).(*LogEntry)
|
e := l.NewLogEntry(l.req).(*LogEntry)
|
||||||
fmt.Fprintf(e.buf, "panic: %#v", v)
|
fmt.Fprintf(e.buf, "panic: %#v", v)
|
||||||
|
|||||||
Reference in New Issue
Block a user