Skip to content

Commit

Permalink
modify debugger to write packet via log's Writer (go-ldap#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
almozavr authored and inv2004 committed Jan 17, 2023
1 parent 6dfecc6 commit 6bda5a4
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 6bda5a4

Please sign in to comment.