@@ -258,7 +258,6 @@ func (c *ShadeformClient) getLifecycleStatus(status string) v1.LifecycleStatus {
258258
259259// convertInstanceInfoResponseToV1Instance - converts Instance Info to v1 instance
260260func (c * ShadeformClient ) convertInstanceInfoResponseToV1Instance (ctx context.Context , instanceInfo openapi.InstanceInfoResponse ) (* v1.Instance , error ) {
261- c .logger .Debug (ctx , "converting instance info response to v1 instance" , v1 .LogField ("instanceInfo" , instanceInfo ))
262261 instanceType := c .getInstanceType (string (instanceInfo .Cloud ), instanceInfo .ShadeInstanceType )
263262 lifeCycleStatus := c .getLifecycleStatus (string (instanceInfo .Status ))
264263
@@ -271,18 +270,15 @@ func (c *ShadeformClient) convertInstanceInfoResponseToV1Instance(ctx context.Co
271270 if ! found {
272271 return nil , errors .WrapAndTrace (errors .New ("could not find refID tag" ))
273272 }
274- c .logger .Debug (ctx , "refID found, deleting from tags" , v1 .LogField ("refID" , refID ))
275273 delete (tags , refIDTagName )
276274
277275 cloudCredRefID , found := tags [cloudCredRefIDTagName ]
278276 if ! found {
279277 return nil , errors .WrapAndTrace (errors .New ("could not find cloudCredRefID tag" ))
280278 }
281- c .logger .Debug (ctx , "cloudCredRefID found, deleting from tags" , v1 .LogField ("cloudCredRefID" , cloudCredRefID ))
282279 delete (tags , cloudCredRefIDTagName )
283280
284281 diskSize := units .Base2Bytes (instanceInfo .Configuration .StorageInGb ) * units .GiB
285- c .logger .Debug (ctx , "calculated diskSize" , v1 .LogField ("diskSize" , diskSize ), v1 .LogField ("storageInGb" , instanceInfo .Configuration .StorageInGb ))
286282
287283 instance := & v1.Instance {
288284 Name : c .getProvidedInstanceName (instanceInfo .Name ),
@@ -314,7 +310,6 @@ func (c *ShadeformClient) convertInstanceInfoResponseToV1Instance(ctx context.Co
314310// convertInstanceInfoResponseToV1Instance - converts /instances response to v1 instance; the api struct is slightly
315311// different from instance info response and expected to diverge so keeping it as a separate function for now
316312func (c * ShadeformClient ) convertShadeformInstanceToV1Instance (ctx context.Context , shadeformInstance openapi.Instance ) (* v1.Instance , error ) {
317- c .logger .Debug (ctx , "converting shadeform instance to v1 instance" , v1 .LogField ("shadeformInstance" , shadeformInstance ))
318313 instanceType := c .getInstanceType (string (shadeformInstance .Cloud ), shadeformInstance .ShadeInstanceType )
319314 lifeCycleStatus := c .getLifecycleStatus (string (shadeformInstance .Status ))
320315
@@ -327,18 +322,15 @@ func (c *ShadeformClient) convertShadeformInstanceToV1Instance(ctx context.Conte
327322 if ! found {
328323 return nil , errors .WrapAndTrace (errors .New ("could not find refID tag" ))
329324 }
330- c .logger .Debug (ctx , "refID found, deleting from tags" , v1 .LogField ("refID" , refID ))
331325 delete (tags , refIDTagName )
332326
333327 cloudCredRefID , found := tags [cloudCredRefIDTagName ]
334328 if ! found {
335329 return nil , errors .WrapAndTrace (errors .New ("could not find cloudCredRefID tag" ))
336330 }
337- c .logger .Debug (ctx , "cloudCredRefID found, deleting from tags" , v1 .LogField ("cloudCredRefID" , cloudCredRefID ))
338331 delete (tags , cloudCredRefIDTagName )
339332
340333 diskSize := units .Base2Bytes (shadeformInstance .Configuration .StorageInGb ) * units .GiB
341- c .logger .Debug (ctx , "calculated diskSize" , v1 .LogField ("diskSize" , diskSize ), v1 .LogField ("storageInGb" , shadeformInstance .Configuration .StorageInGb ))
342334
343335 instance := & v1.Instance {
344336 Name : shadeformInstance .Name ,
0 commit comments