Skip to content

Commit

Permalink
Cleaned up fmt.Sprintf for logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Taylor committed May 16, 2017
1 parent 4427ede commit 000ffad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/awsvpc/awsvpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type backendConfig struct {

func (conf *backendConfig) routeTables() ([]string, error) {
if table, ok := conf.RouteTableID.(string); ok {
log.Info(fmt.Sprintf("RouteTableID configured as string: %s", table))
log.Info("RouteTableID configured as string: %s", table)
return []string{table}, nil
}
if rawTables, ok := conf.RouteTableID.([]interface{}); ok {
Expand All @@ -79,7 +79,7 @@ func (conf *backendConfig) routeTables() ([]string, error) {

func (conf *backendConfig) routeTableConfigured() bool {
configured := conf.RouteTableID != nil
log.Info(fmt.Sprintf("Route table configured: %t", configured))
log.Infof("Route table configured: %t", configured)
return configured
}

Expand Down

0 comments on commit 000ffad

Please sign in to comment.