Skip to content

Commit

Permalink
modify debugger to write packet via log's Writer (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
almozavr authored Aug 16, 2021
1 parent a10e112 commit f61ea45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ func (debug debugging) Printf(format string, args ...interface{}) {
// PrintPacket dumps a packet.
func (debug debugging) PrintPacket(packet *ber.Packet) {
if debug {
ber.PrintPacket(packet)
ber.WritePacket(log.Writer(), packet)
}
}
2 changes: 1 addition & 1 deletion v3/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ func (debug debugging) Printf(format string, args ...interface{}) {
// PrintPacket dumps a packet.
func (debug debugging) PrintPacket(packet *ber.Packet) {
if debug {
ber.PrintPacket(packet)
ber.WritePacket(log.Writer(), packet)
}
}

0 comments on commit f61ea45

Please sign in to comment.