Skip to content

Commit 03f7a2c

Browse files
committed
fix bug with correlation id with executors
1 parent 6858840 commit 03f7a2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BasicExecutor/CommandExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function getCorrelationId(Throwable $exception, Config $config): string
103103
$id = getenv(self::ALIAS_FOR_CORRELATION_ID);
104104

105105
if (!$id) {
106-
$config->getTransport()->getNextId($exception, $config);
106+
$id = $config->getTransport()->getNextId($exception, $config);
107107
}
108108

109109
return (string) $id;

src/BasicExecutor/HttpExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function getCorrelationId(\Throwable $exception, Config $config): string
9797
$id = $_SERVER['HTTP_' . self::CID] ?? apache_request_headers()[self::CID] ?? null;
9898

9999
if (!$id) {
100-
$config->getTransport()->getNextId($exception, $config);
100+
$id = $config->getTransport()->getNextId($exception, $config);
101101
}
102102

103103
return (string) $id;

0 commit comments

Comments
 (0)