Skip to content

Commit

Permalink
Add silent option resolving ESCOMP#1941
Browse files Browse the repository at this point in the history
  • Loading branch information
ekluzek committed Jan 21, 2023
1 parent 040555c commit dacc5a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/ctsm/ctsm_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def add_logging_args(parser):
logging_level.add_argument(
"-v", "--verbose", action="store_true", help="Output extra logging info"
)
logging_level.add_argument("--silent", action="store_true", help="Only output errors")

logging_level.add_argument(
"--debug",
Expand All @@ -84,6 +85,8 @@ def process_logging_args(args):
root_logger.setLevel(logging.DEBUG)
elif args.verbose:
root_logger.setLevel(logging.INFO)
elif args.silent:
root_logger.setLevel(logging.ERROR)
else:
root_logger.setLevel(logging.WARNING)

Expand Down

0 comments on commit dacc5a5

Please sign in to comment.