Zum Inhalt springen

Empty Log Message (ARCH6163)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key ruby.logging.empty-log-message · Severity info · Category logging

An empty or whitespace-only log message produces noise with no diagnostic value. Log lines should always carry meaningful content.

def run
Rails.logger.info("")
process
end
def run
Rails.logger.info("Starting job", job: self.class.name)
process
end

Give every log call a meaningful message that describes the context; remove empty messages.