MCPcopy Create free account
hub / github.com/StackStorm/st2 / _log_request

Method _log_request

st2api/st2api/controllers/v1/webhooks.py:247–250  ·  view source on GitHub ↗
(self, msg, headers, body, log_method=LOG.debug)

Source from the content-addressed store, hash-verified

245 return {key: value for key, value in headers.items() if key not in auth_headers}
246
247 def _log_request(self, msg, headers, body, log_method=LOG.debug):
248 headers = self._get_headers_as_dict(headers)
249 body = str(body)
250 log_method("%s\n\trequest.header: %s.\n\trequest.body: %s.", msg, headers, body)
251
252 ##############################################
253 # Event handler methods for the trigger events

Callers 1

postMethod · 0.95

Calls 1

_get_headers_as_dictMethod · 0.95

Tested by

no test coverage detected