Skip to content

Suppress compile summary stats if --quiet flag is set on compile. #2820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 24, 2025
6 changes: 6 additions & 0 deletions internal/arduino/builder/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,19 @@ func New(stdout, stderr io.Writer, verbosity Verbosity, warningsLevel string) *B

// Info fixdoc
func (l *BuilderLogger) Info(msg string) {
if msg == "" {
return
}
l.stdLock.Lock()
defer l.stdLock.Unlock()
fmt.Fprintln(l.stdout, msg)
}

// Warn fixdoc
func (l *BuilderLogger) Warn(msg string) {
if msg == "" {
return
}
l.stdLock.Lock()
defer l.stdLock.Unlock()
fmt.Fprintln(l.stderr, msg)
Expand Down