Replaced loggers in `p2p/` with custom shared logger

pull/1175/head
Kai Lee 5 years ago
parent 96cdd552e7
commit 4e35e7d749
  1. 6
      p2p/host/hostv2/util.go

@ -1,12 +1,10 @@
package hostv2
import (
"github.com/ethereum/go-ethereum/log"
)
import "github.com/harmony-one/harmony/internal/utils"
func catchError(err error) {
if err != nil {
log.Error("catchError", "err", err)
utils.GetLogger().Error("catchError", "err", err)
panic(err)
}
}

Loading…
Cancel
Save