shipyard/shipyard_airflow/shipyard.py
Bryan Strassner 5d0b55b272 Logging to use request scope provided by uwsgi and standard logging filters
This change introduces a logging filter that sniffs for the presence of uwsgi
being provided to the application, and if so, uses it to provide request scoped
logging variables. This change allows for more standard logging pattersn to be
followed throughout the rest of the API code while still providing information
related to the request, such as the request ID and the external context marker
that may be used by a client of the software.

Change-Id: I82f9070e25a97043ddf4660635595c473a38cda2
2017-11-21 14:45:40 -06:00

28 lines
959 B
Python
Executable File

# Copyright 2017 AT&T Intellectual Property. All other rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Entrypoint module for shipyard.
Bootstraps to the start_shipyard module.
"""
from shipyard_airflow.control.start_shipyard import start_shipyard
# Initialization compatible with PasteDeploy
def paste_start_shipyard(global_conf, **kwargs):
"""Paste deploy compatible initializer"""
return shipyard
shipyard = start_shipyard()