@ -77,7 +77,7 @@ func main() {
log.Info("bootnode", "BN_MA", fmt.Sprintf("/ip4/%s/tcp/%s/p2p/%s", *ip, *port, host.GetID().Pretty()))
if *logConn {
host.GetP2PHost().Network().Notify(utils.RootConnLogger)
host.GetP2PHost().Network().Notify(utils.NewConnLogger(utils.GetLogInstance()))
}
dataStore := dsync.MutexWrap(ds.NewMapDatastore())
@ -291,7 +291,7 @@ func createGlobalConfig() *nodeconfig.ConfigType {
nodeConfig.Host, err = p2pimpl.NewHost(&nodeConfig.SelfPeer, nodeConfig.P2pPriKey)
nodeConfig.Host.GetP2PHost().Network().Notify(utils.RootConnLogger)
nodeConfig.Host.GetP2PHost().Network().Notify(utils.NewConnLogger(utils.GetLogInstance()))
if err != nil {
panic("unable to new host in harmony")