@@ 102-105 (lines=4) @@ | ||
99 | { |
|
100 | $response = $handler->handle($request); |
|
101 | ||
102 | if ($this->options['log_request']) { |
|
103 | $requestMessage = $this->generateRequestLog($request, $response); |
|
104 | $this->logger->log($this->options['level'], sprintf("Request: %s", $requestMessage)); |
|
105 | } |
|
106 | ||
107 | if ($this->options['log_response']) { |
|
108 | $responseMessage = $this->generateResponseLog($request, $response); |
|
@@ 107-110 (lines=4) @@ | ||
104 | $this->logger->log($this->options['level'], sprintf("Request: %s", $requestMessage)); |
|
105 | } |
|
106 | ||
107 | if ($this->options['log_response']) { |
|
108 | $responseMessage = $this->generateResponseLog($request, $response); |
|
109 | $this->logger->log($this->options['level'], sprintf("Response: %s", $responseMessage)); |
|
110 | } |
|
111 | ||
112 | return $response; |
|
113 | } |