We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
display_errors=1
1 parent 5cf23d1 commit fdef647Copy full SHA for fdef647
layers/bootstrap.php
@@ -1,5 +1,11 @@
1
<?php declare(strict_types=1);
2
3
+// Force errors to be logged to stdout so that they end up in CloudWatch.
4
+// In the `function` runtime this is already `1`, but in the `fpm` runtime it is `0` by default.
5
+// Here we are forcing it to `1` in the bootstrap process, it will not impact the application code
6
+// as it runs in different processes (FPM worker) and those will have `display_errors=0`.
7
+ini_set('display_errors', '1');
8
+
9
$appRoot = getenv('LAMBDA_TASK_ROOT');
10
11
$autoloadPath = $_SERVER['BREF_AUTOLOAD_PATH'] ?? null;
0 commit comments