@@ -338,20 +338,20 @@ func (pm *PackageManager) GetInstalledPlatformRelease(platform *cores.Platform)
338
338
return nil
339
339
}
340
340
341
- log := func (msg string , pl * cores.PlatformRelease ) {
341
+ debug := func (msg string , pl * cores.PlatformRelease ) {
342
342
pm .Log .WithField ("bundle" , pl .IsIDEBundled ).
343
343
WithField ("version" , pl .Version ).
344
344
WithField ("managed" , pm .IsManagedPlatformRelease (pl )).
345
- Infof ("%s: %s" , msg , pl )
345
+ Debugf ("%s: %s" , msg , pl )
346
346
}
347
347
348
348
best := releases [0 ]
349
349
bestIsManaged := pm .IsManagedPlatformRelease (best )
350
- log ("current best" , best )
350
+ debug ("current best" , best )
351
351
352
352
for _ , candidate := range releases [1 :] {
353
353
candidateIsManaged := pm .IsManagedPlatformRelease (candidate )
354
- log ("candidate" , candidate )
354
+ debug ("candidate" , candidate )
355
355
// TODO: Disentangle this algorithm and make it more straightforward
356
356
if bestIsManaged == candidateIsManaged {
357
357
if best .IsIDEBundled == candidate .IsIDEBundled {
@@ -367,7 +367,7 @@ func (pm *PackageManager) GetInstalledPlatformRelease(platform *cores.Platform)
367
367
best = candidate
368
368
bestIsManaged = true
369
369
}
370
- log ("current best" , best )
370
+ debug ("current best" , best )
371
371
}
372
372
return best
373
373
}
0 commit comments