Skip to content

Commit

Permalink
feat: log Required tool with debug severity
Browse files Browse the repository at this point in the history
Logging with `info` generates too much noise.

Closes #2313

Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
Akos Kitta committed Sep 13, 2023
1 parent 3f5c0eb commit bcf0103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arduino/cores/packagemanager/package_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func (pme *Explorer) FindToolsRequiredFromPlatformRelease(platform *cores.Platfo
requiredTools := []*cores.ToolRelease{}
platform.ToolDependencies.Sort()
for _, toolDep := range platform.ToolDependencies {
pme.log.WithField("tool", toolDep).Infof("Required tool")
pme.log.WithField("tool", toolDep).Debugf("Required tool")
tool := pme.FindToolDependency(toolDep)
if tool == nil {
return nil, fmt.Errorf(tr("tool release not found: %s"), toolDep)
Expand Down Expand Up @@ -787,7 +787,7 @@ func (pme *Explorer) FindToolsRequiredForBuild(platform, buildPlatform *cores.Pl
// that the returned array is sorted by version.
platform.ToolDependencies.Sort()
for _, toolDep := range platform.ToolDependencies {
pme.log.WithField("tool", toolDep).Infof("Required tool")
pme.log.WithField("tool", toolDep).Debugf("Required tool")
tool := pme.FindToolDependency(toolDep)
if tool == nil {
return nil, fmt.Errorf(tr("tool release not found: %s"), toolDep)
Expand Down

0 comments on commit bcf0103

Please sign in to comment.