Skip to content

Commit

Permalink
Change logging default value to be error
Browse files Browse the repository at this point in the history
  • Loading branch information
margalva committed Oct 25, 2023
1 parent 107a06a commit 058ed8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codegen/adr_utils.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ def get_logger(logfile=None):
The logger object.
"""
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.setLevel(logging.ERROR)
if logfile is None:
# Logging for Python APIs should be disabled by default
ch = logging.NullHandler()
elif logfile=='stdout':
ch = logging.StreamHandler(sys.stdout)
else:
ch = logging.FileHandler(logfile)
ch.setLevel(logging.DEBUG)
ch.setLevel(logging.ERROR)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
ch.setFormatter(formatter)
logger.addHandler(ch)
Expand Down

0 comments on commit 058ed8b

Please sign in to comment.