@@ -93,14 +93,15 @@ func init() {
93
93
// Use V(5) for GCE Cloud Provider Call informational logging
94
94
// Use V(6) for extra repeated/polling information
95
95
enumFlag (& computeEnvironment , "compute-environment" , allowedComputeEnvironment , "Operating compute environment" )
96
- urlFlag (computeEndpoint , "compute-endpoint" , "Compute endpoint" )
96
+ urlFlag (& computeEndpoint , "compute-endpoint" , "Compute endpoint" )
97
97
klog .InitFlags (flag .CommandLine )
98
98
flag .Set ("logtostderr" , "true" )
99
99
}
100
100
101
101
func main () {
102
102
flag .Parse ()
103
103
rand .Seed (time .Now ().UnixNano ())
104
+ klog .Infof ("Operating compute environment set to: %s and computeEndpoint is set to: %v" , computeEnvironment , computeEndpoint )
104
105
handle ()
105
106
os .Exit (0 )
106
107
}
@@ -236,13 +237,14 @@ func enumFlag(target *gce.Environment, name string, allowedComputeEnvironment []
236
237
237
238
}
238
239
239
- func urlFlag (target * url.URL , name string , usage string ) {
240
+ func urlFlag (target * * url.URL , name string , usage string ) {
240
241
flag .Func (name , usage , func (flagValue string ) error {
241
242
computeURL , err := url .ParseRequestURI (flagValue )
242
243
if err == nil {
243
- target = computeURL
244
+ * target = computeURL
244
245
return nil
245
246
}
247
+ klog .Infof ("Error parsing endpoint compute endpoint %v" , err )
246
248
return err
247
249
})
248
250
}
0 commit comments