Skip to content

Commit a1a3e50

Browse files
committed
Add debug ouput to onmetal plugin
1 parent f736539 commit a1a3e50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/onmetal/plugin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func setup6(args ...string) (handler.Handler6, error) {
2727
}
2828

2929
func handler6(req, resp dhcpv6.DHCPv6) (dhcpv6.DHCPv6, bool) {
30-
//log.Printf("received DHCPv6 packet: %s", req.Summary())
30+
log.Printf("Received DHCPv6 request: %s", req.Summary())
3131

3232
if !req.IsRelay() {
3333
log.Printf("Received non-relay DHCPv6 request. Dropping.")
@@ -62,7 +62,7 @@ func handler6(req, resp dhcpv6.DHCPv6) (dhcpv6.DHCPv6, bool) {
6262
}},
6363
})
6464

65-
//log.Printf("responding with this packet:\n%s", resp.Summary())
65+
log.Printf("Sent DHCPv6 response:\n%s", resp.Summary())
6666

6767
return resp, false
6868
}

0 commit comments

Comments
 (0)