@@ -73,7 +73,7 @@ func (s *Service) normalizePortTarget(port *infrav1.PortOpts, openStackCluster *
73
73
// No network, but fixed IPs are defined(we handled the no fixed
74
74
// IPs case above): try to infer network from a subnet
75
75
if noNetwork {
76
- s .scope .Logger ().V (4 ).Info ("No network defined for port %d , attempting to infer from subnet" , portIdx )
76
+ s .scope .Logger ().V (4 ).Info ("No network defined for port, attempting to infer from subnet" , "port " , portIdx )
77
77
78
78
// Look for a unique subnet defined in FixedIPs. If we find one
79
79
// we can use it to infer the network ID. We don't need to worry
@@ -95,7 +95,7 @@ func (s *Service) normalizePortTarget(port *infrav1.PortOpts, openStackCluster *
95
95
if err != nil {
96
96
// Multiple matches might be ok later when we restrict matches to a single network
97
97
if errors .Is (err , networking .ErrMultipleMatches ) {
98
- s .scope .Logger ().V (4 ).Info ("Can 't infer network from subnet %d: %s" , i , err )
98
+ s .scope .Logger ().V (4 ).Info ("Couldn 't infer network from subnet" , "subnetIndex" , i , "err" , err )
99
99
continue
100
100
}
101
101
@@ -433,7 +433,7 @@ func (s *Service) getOrCreateRootVolume(eventObject runtime.Object, instanceSpec
433
433
return nil , fmt .Errorf ("exected to find volume %s with size %d; found size %d" , name , size , volume .Size )
434
434
}
435
435
436
- s .scope .Logger ().Info ("using existing root volume %s " , name )
436
+ s .scope .Logger ().V ( 3 ). Info ("Using existing root volume" , "name " , name )
437
437
return volume , nil
438
438
}
439
439
@@ -580,7 +580,7 @@ func (s *Service) DeleteInstance(eventObject runtime.Object, instanceStatus *Ins
580
580
return nil
581
581
}
582
582
583
- s .scope .Logger ().Info ("deleting dangling root volume %s(%s)" , volume .Name , volume .ID )
583
+ s .scope .Logger ().V ( 2 ). Info ("Deleting dangling root volume" , "name" , volume .Name , "ID" , volume .ID )
584
584
return s .getVolumeClient ().DeleteVolume (volume .ID , volumes.DeleteOpts {})
585
585
}
586
586
0 commit comments