prints version on start

This commit is contained in:
Stefan Allius
2023-10-01 21:22:43 +02:00
parent 382d887f56
commit c31c0280e7

View File

@@ -42,9 +42,10 @@ if __name__ == "__main__":
# Setup our daily, rotating logger
#
serv_name = os.getenv('SERVICE_NAME', 'proxy')
version = os.getenv('VERSION', 'unknown')
logging.config.fileConfig('logging.ini')
logging.info(f'Server "{serv_name}" will be started')
logging.info(f'Server "{serv_name} - {version}" will be started')
# read config file
Config.read()