def after_handle(self): payload = self.response.payload is_basestring = isinstance(payload, basestring) needs_meta = self.request.input.get('needs_meta', True) if needs_meta and hasattr(self, '_search_tool') and not is_basestring: payload.zato_meta = self._search_tool.output_meta logger.info('cid:`%s`, name:`%s`, response:`%s`', self.cid, self.name, replace_private_key(get_response_value(self.response)))
def after_handle(self): # Do not log BASE64-encoded messages if self.name == 'zato.service.invoke': return if self.server.is_admin_enabled_for_info: logger.info('Response; service:`%s`, data:`%s` cid:`%s`, ', self.name, replace_private_key(get_response_value(self.response)), self.cid) payload = self.response.payload is_text = isinstance(payload, basestring) needs_meta = self.request.input.get('needs_meta', True) if needs_meta and hasattr(self, '_search_tool'): if not is_text: payload.zato_meta = self._search_tool.output_meta