summaryrefslogtreecommitdiff
path: root/apifw/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'apifw/http.py')
-rw-r--r--apifw/http.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/apifw/http.py b/apifw/http.py
index 0675442..7b5a8e9 100644
--- a/apifw/http.py
+++ b/apifw/http.py
@@ -80,6 +80,12 @@ class HttpTransaction:
}
self._logger(self._combine_dicts(log, self.construct_response_log()))
+ def _log_callback(self):
+ log = {
+ 'msg_type': 'http-callback',
+ }
+ self._logger(log)
+
def _log_error(self, exc):
log = {
'msg_type': 'error',
@@ -99,6 +105,7 @@ class HttpTransaction:
self._counter()
self._log_request()
data = callback(*args, **kwargs)
+ self._log_callback()
self.amend_response()
self._log_response()
return data