Commit 3d219ca0 authored by Steven Allen's avatar Steven Allen

don't generate a stack trace for every command

We can add these back if we need them but, at the very least, we shouldn't be
unconditionally generating stack traces on `Close`.
parent b4c6b636
......@@ -5,7 +5,6 @@ import (
"fmt"
"io"
"os"
"runtime/debug"
"sync"
"github.com/ipfs/go-ipfs-cmdkit"
......@@ -92,8 +91,6 @@ func (re *responseEmitter) Close() error {
return errors.New("closing closed responseemitter")
}
log.Debugf("err=%v exit=%v\nStack:\n%s", re.err, re.exit, debug.Stack())
re.wLock.Lock()
defer re.wLock.Unlock()
......@@ -172,7 +169,6 @@ func (re *responseEmitter) Emit(v interface{}) error {
}
if err, ok := v.(cmdkit.Error); ok {
log.Warningf("fixerr %s", debug.Stack())
v = &err
}
......
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