2021-09-02 17:16:04 +08:00

24 lines
703 B
Diff

diff --git a/wsgi.py b/wsgi.py
index d66f9c5..93fc875 100644
--- a/wsgi.py
+++ b/wsgi.py
@@ -1,6 +1,8 @@
+#!/usr/bin/python
+
import runner_service.configuration as configuration
from runner_service.app import create_app
-from ansible_runner_service import setup_common_environment, remove_artifacts_init
+from runner_service.ansible_runner_service import setup_logging, remove_artifacts_init
"""
@@ -14,7 +16,7 @@ It exposes the WSGI callable as a module-level variable named ``application``.
configuration.init(mode='prod')
# Setup log and ssh and other things present in all the environments
-setup_common_environment()
+setup_logging()
# Setup remove of artifacts
remove_artifacts_init()