Skip to content

Commit

Permalink
initial support for complete URL in request log
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 18, 2018
1 parent c1af7a6 commit 5850e55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/appier_extras/parts/diag/models/request.py
Expand Up @@ -48,6 +48,11 @@ class DiagRequest(base.DiagBase):
immutable = True
)

url = appier.field(
index = "all",
immutable = True
)

method = appier.field(
index = "all",
immutable = True
Expand Down
2 changes: 2 additions & 0 deletions src/appier_extras/parts/diag/part.py
Expand Up @@ -197,6 +197,7 @@ def _store_log(self):
browser_info = browser_info or dict()
diag_request = models.DiagRequest(
address = self.request.get_address(),
url = self.request.get_url(),
method = self.request.method,
path = self.request.path,
query = self.request.query,
Expand All @@ -214,6 +215,7 @@ def _loggly_log(self):
item = dict(
timestamp = self._timestamp,
address = self.request.get_address(),
url = self.request.get_url(),
method = self.request.method,
path = self.request.path,
query = self.request.query,
Expand Down

0 comments on commit 5850e55

Please sign in to comment.