diff --git a/update-firewall-source.py b/update-firewall-source.py index 4872eb3..55c1fd0 100644 --- a/update-firewall-source.py +++ b/update-firewall-source.py @@ -83,7 +83,9 @@ logging.basicConfig( ) log = logging.getLogger("rich") # Our own code logs with this level -log.setLevel(logging.DEBUG) +log.setLevel(os.environ.get("UFS_LOGLEVEL") if "UFS_LOGLEVEL" in [k for k, v in os.environ.items()] else logging.INFO) + +p = inflect.engine() # Use this version of class ConfigParser to log.debug contents of our config file. When parsing sections other than