canonicallog

package
v0.0.0-...-e182a19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogMisbehavingPeer

func LogMisbehavingPeer(p peer.ID, peerAddr multiaddr.Multiaddr, component string, err error, msg string)

LogMisbehavingPeer is the canonical way to log a misbehaving peer. Protocols should use this to identify a misbehaving peer to allow the end user to easily identify these nodes across protocols and libp2p.

func LogMisbehavingPeerNetAddr

func LogMisbehavingPeerNetAddr(p peer.ID, peerAddr net.Addr, component string, originalErr error, msg string)

LogMisbehavingPeer is the canonical way to log a misbehaving peer. Protocols should use this to identify a misbehaving peer to allow the end user to easily identify these nodes across protocols and libp2p.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL