mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Add request ID logging to the API.
- adds a request ID if needed to use in all log events - respects request-ids passed in from calling clients
This commit is contained in:
@@ -6,7 +6,7 @@ from flask import request, url_for, g, jsonify
|
||||
from flask.ext.sqlalchemy import SQLAlchemy
|
||||
from flask_marshmallow import Marshmallow
|
||||
from monotonic import monotonic
|
||||
from notifications_utils import logging
|
||||
from notifications_utils import logging, request_id
|
||||
from werkzeug.local import LocalProxy
|
||||
|
||||
from app.celery.celery import NotifyCelery
|
||||
@@ -48,6 +48,7 @@ def create_app(app_name=None):
|
||||
application.config['NOTIFY_APP_NAME'] = app_name
|
||||
|
||||
init_app(application)
|
||||
request_id.init_app(application)
|
||||
db.init_app(application)
|
||||
ma.init_app(application)
|
||||
statsd_client.init_app(application)
|
||||
|
||||
Reference in New Issue
Block a user