all: update light logs (and a few others) to the new model
This commit is contained in:
@ -20,7 +20,6 @@ package debug
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime/trace"
|
||||
|
||||
@ -44,7 +43,7 @@ func (h *HandlerT) StartGoTrace(file string) error {
|
||||
}
|
||||
h.traceW = f
|
||||
h.traceFile = file
|
||||
log.Info(fmt.Sprint("trace started, writing to", h.traceFile))
|
||||
log.Info("Go tracing started", "dump", h.traceFile)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -56,7 +55,7 @@ func (h *HandlerT) StopGoTrace() error {
|
||||
if h.traceW == nil {
|
||||
return errors.New("trace not in progress")
|
||||
}
|
||||
log.Info(fmt.Sprint("done writing trace to", h.traceFile))
|
||||
log.Info("Done writing Go trace", "dump", h.traceFile)
|
||||
h.traceW.Close()
|
||||
h.traceW = nil
|
||||
h.traceFile = ""
|
||||
|
Reference in New Issue
Block a user