Skip to content

Commit

Permalink
fix log
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhaifeng committed Jan 8, 2021
1 parent 1c0d9b3 commit 9850742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/awsvpc/awsvpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (conf *backendConfig) routeTables() ([]string, error) {
return []string{table}, nil
}
if rawTables, ok := conf.RouteTableID.([]interface{}); ok {
log.Info("RouteTableID configured as slice: %+v", rawTables)
log.Infof("RouteTableID configured as slice: %+v", rawTables)
tables := make([]string, len(rawTables))
for idx, t := range rawTables {
table, ok := t.(string)
Expand All @@ -85,7 +85,7 @@ func (be *AwsVpcBackend) RegisterNetwork(ctx context.Context, wg *sync.WaitGroup
var cfg backendConfig

if len(config.Backend) > 0 {
log.Info("Backend configured as: %s", string(config.Backend))
log.Infof("Backend configured as: %s", string(config.Backend))
if err := json.Unmarshal(config.Backend, &cfg); err != nil {
return nil, fmt.Errorf("error decoding VPC backend config: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion backend/ipsec/handle_xfrm.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func AddXFRMPolicy(myLease, remoteLease *subnet.Lease, dir netlink.Dir, reqID in
return fmt.Errorf("error getting policy: %+v err: %v", policy, err)
}
} else {
log.Info("Updating ipsec policy %+v with %+v", existingPolicy, policy)
log.Infof("Updating ipsec policy %+v with %+v", existingPolicy, policy)
if err := netlink.XfrmPolicyUpdate(policy); err != nil {
return fmt.Errorf("error updating policy: %+v err: %v", policy, err)
}
Expand Down

0 comments on commit 9850742

Please # to comment.