Skip to content

Commit

Permalink
chore: improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed May 26, 2020
1 parent 69aac9b commit 6e1589c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ func (c *Controller) handleAddOrUpdateSubnet(key string) error {
}

if err := calcSubnetStatusIP(subnet, c); err != nil {
klog.Error("init subnet status failed", err)
klog.Errorf("calculate subnet %s used ip failed, %v", subnet.Name, err)
return err
}

if err := c.ipam.AddOrUpdateSubnet(subnet.Name, subnet.Spec.CIDRBlock, subnet.Spec.ExcludeIps); err != nil {
Expand Down

0 comments on commit 6e1589c

Please sign in to comment.