Skip to content

Commit

Permalink
Remove commented out input debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
wanyufe committed May 2, 2023
1 parent 9c3c59c commit b570dec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/egress-cni-plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func add(args *skel.CmdArgs, ec *egressContext) (err error) {
return err
}

func cmdDel(args *skel.CmdArgs) (err error) {
func cmdDel(args *skel.CmdArgs) error {
ec := NewEgressDelContext(args.Netns)
return del(args, &ec)
}
Expand All @@ -119,11 +119,6 @@ func del(args *skel.CmdArgs, ec *egressContext) (err error) {
return fmt.Errorf("failed to parse config: %v", err)
}
ec.Log.Debugf("Received a Del request: nsPath: %s conf=%+v", ec.NsPath, *ec.NetConf)
// uncomment following lines to debug detailed inputs
//stdin := args.StdinData
//args.StdinData = nil
//ec.Log.Debugf("args: %+v, stdinData: %+v", *args, string(stdin))
//args.StdinData = stdin

// We only need this plugin to kick in if egress is enabled
if ec.NetConf.Enabled != "true" {
Expand Down

0 comments on commit b570dec

Please sign in to comment.