Skip to content

Commit

Permalink
Disable default logging (have to add log handlers explicitly). Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmegginson committed Jul 22, 2020
1 parent 6645555 commit a1b99cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hxl_proxy/__init__.py
Expand Up @@ -7,7 +7,7 @@
Documentation: http://hxlstandard.org
"""

import os
import logging, os

import requests_cache
from flask import Flask, g, request
Expand All @@ -24,6 +24,9 @@
# Main application object
app = Flask(__name__)

# Disable default logging (we'll add any log handlers explicitly in deployment)
app.logger.addHandler(logging.NullHandler)

# Handle subpaths
app.wsgi_app = reverse_proxied.ReverseProxied(app.wsgi_app)

Expand Down

0 comments on commit a1b99cf

Please sign in to comment.