Skip to content

Commit 125594b

Browse files
committed
Fixes port missing in log issue #925
1 parent a80d136 commit 125594b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Connections/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public function logRequestFail(array $request, array $response, \Exception $exce
422422
array(
423423
'method' => $request['http_method'],
424424
'uri' => $response['effective_url'],
425-
'port' => $response['transfer_stats']['primary_port'],
425+
'port' => $response['transfer_stats']['primary_port'] ?? '',
426426
'headers' => $request['headers'],
427427
'HTTP code' => $response['status'],
428428
'duration' => $response['transfer_stats']['total_time'],

0 commit comments

Comments
 (0)