Skip to content

Commit 44e3ce1

Browse files
authored
[skip changelog] GH-680: Reduced the log level in package manager (#774)
From now on, we log with the `debug` level instead of `info`. Closes #680 Signed-off-by: Akos Kitta <[email protected]>
1 parent 66331bb commit 44e3ce1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arduino/cores/packagemanager/package_manager.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -338,20 +338,20 @@ func (pm *PackageManager) GetInstalledPlatformRelease(platform *cores.Platform)
338338
return nil
339339
}
340340

341-
log := func(msg string, pl *cores.PlatformRelease) {
341+
debug := func(msg string, pl *cores.PlatformRelease) {
342342
pm.Log.WithField("bundle", pl.IsIDEBundled).
343343
WithField("version", pl.Version).
344344
WithField("managed", pm.IsManagedPlatformRelease(pl)).
345-
Infof("%s: %s", msg, pl)
345+
Debugf("%s: %s", msg, pl)
346346
}
347347

348348
best := releases[0]
349349
bestIsManaged := pm.IsManagedPlatformRelease(best)
350-
log("current best", best)
350+
debug("current best", best)
351351

352352
for _, candidate := range releases[1:] {
353353
candidateIsManaged := pm.IsManagedPlatformRelease(candidate)
354-
log("candidate", candidate)
354+
debug("candidate", candidate)
355355
// TODO: Disentangle this algorithm and make it more straightforward
356356
if bestIsManaged == candidateIsManaged {
357357
if best.IsIDEBundled == candidate.IsIDEBundled {
@@ -367,7 +367,7 @@ func (pm *PackageManager) GetInstalledPlatformRelease(platform *cores.Platform)
367367
best = candidate
368368
bestIsManaged = true
369369
}
370-
log("current best", best)
370+
debug("current best", best)
371371
}
372372
return best
373373
}

0 commit comments

Comments
 (0)