disable DEBUG logging for optimzed images

This commit is contained in:
Stefan Allius
2023-10-06 22:59:57 +02:00
parent 3db643cb87
commit bee25a5f13

View File

@@ -45,6 +45,7 @@ if __name__ == "__main__":
logging.config.fileConfig('logging.ini')
logging.info(f'Server "{serv_name} - {version}" will be started')
logging.getLogger().setLevel(logging.DEBUG if __debug__ else logging.INFO)
# read config file
Config.read()