Skip to content

Commit

Permalink
Add referer info to the JSON logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Valsecchi committed Aug 9, 2017
1 parent ac2e5ba commit 9342b02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions c2cwsgiutils/pyramid_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def filter(self, record):
record.matched_route = request.matched_route.name
record.path = request.path
record.request_id = request.c2c_request_id
if request.referer is not None:
record.referer = request.referer
record.level_name = record.levelname
return True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


VERSION = '0.19.0'
VERSION = '0.19.1'
HERE = os.path.abspath(os.path.dirname(__file__))
INSTALL_REQUIRES = open(os.path.join(HERE, 'requirements.txt')).read().splitlines()

Expand Down

0 comments on commit 9342b02

Please sign in to comment.