Skip to content

runLog.error should raise an error #2379

@john-science

Description

@john-science

There are currently 117 places in ARMI where runLog.error() is called, and it logs a message at the error level. For instance:

runLog.error(f"Error in setting {self.name}, val: {val}.")

runLog.error("Values stored in the `notes` parameter must be strings of less than 1000 characters!")

But what is the purpose of "logging an error?" If you don't raise Exception, then this is really just a warning message.

So, let's change runLog.error() to raise the error after logging the message.

NOTE: The original discussion is here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions