mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-12 08:34:43 +00:00
Fix godoc comment on LogEntry.Panic
This commit is contained in:
parent
e71b45b28f
commit
cc98de88ce
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue