aboutsummaryrefslogtreecommitdiffstats
path: root/bin/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/run.py')
-rwxr-xr-xbin/run.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/run.py b/bin/run.py
index cc39a0a..99bf1c7 100755
--- a/bin/run.py
+++ b/bin/run.py
@@ -19,15 +19,13 @@
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
import connexion
-import sys
-from config_binding_service import get_logger
-
-_logger = get_logger(__name__)
+from config_binding_service.logging import create_logger, LOGGER
if __name__ == '__main__':
+ create_logger()
try:
app = connexion.App(__name__, specification_dir='../config_binding_service/swagger/')
app.add_api('swagger.yaml', arguments={'title': 'Config Binding Service'})
app.run(host='0.0.0.0', port=10000, debug=False)
- except Exception as e:
- _logger.error("Fatal error. Could not start webserver due to: {0}".format(e))
+ except Exception as exc:
+ LOGGER.error("Fatal error. Could not start webserver due to: %s", exc)