Skip to content

Commit

Permalink
feat(ipset.go): add set type and new line to debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed May 14, 2024
1 parent e42792f commit 2d2850a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/ipset.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ func (ipset *IPSet) Save() error {
// Send formatted ipset.sets into stdin of "ipset restore" command.
func (ipset *IPSet) Restore() error {
restoreString := buildIPSetRestore(ipset)
klog.V(3).Infof("ipset restore looks like: %s", restoreString)
klog.V(3).Infof("ipset (ipv6? %t) restore looks like:\n%s", ipset.isIpv6, restoreString)
stdin := bytes.NewBufferString(restoreString)
err := ipset.runWithStdin(stdin, "restore", "-exist")
if err != nil {
Expand Down

0 comments on commit 2d2850a

Please sign in to comment.