diff --git a/internal/runtime/logger.go b/internal/runtime/logger.go index adb786ec4..5575efca1 100644 --- a/internal/runtime/logger.go +++ b/internal/runtime/logger.go @@ -74,7 +74,9 @@ func (l *Logger) Update(filename string, logLevel string, argv []string) { if argLogFile != nil { logFiles = append(logFiles, argLogFile) } - argLogFileError = errors.Join(argLogFileError, err) + if err != nil { + argLogFileError = errors.Join(argLogFileError, err) + } } defer func() { if argLogFileError != nil {