Skip to content

Commit 74caa66

Browse files
ZZromanZZcleptric
andauthored
Log also exception when failed to get source code excerpt (#1678)
Co-authored-by: Michi Hoffmann <[email protected]>
1 parent d863dce commit 74caa66

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Integration/FrameContextifierIntegration.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ private function getSourceCodeExcerpt(int $maxContextLines, string $filePath, in
164164
$file->next();
165165
}
166166
} catch (\Throwable $exception) {
167-
$this->logger->warning(sprintf('Failed to get the source code excerpt for the file "%s".', $filePath));
167+
$this->logger->warning(
168+
sprintf('Failed to get the source code excerpt for the file "%s".', $filePath),
169+
['exception' => $exception]
170+
);
168171
}
169172

170173
return $frame;

0 commit comments

Comments
 (0)