Skip to content
Discussion options

You must be logged in to vote

Thanks @mnapoli

I just enabled logs in the php.ini and now they are writing correctly to cloudwatch logs.

; php/conf.d/php.ini
log_errors = on
❯ sls logs -f api --stage stage --tail
INIT_START Runtime Version: provided:al2.v19    Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:684f243b579ceaa7cf8623a17c9a6fadeb7968ae27dc4f4ffcab596e8c76bd39
[30-May-2023 10:14:56] NOTICE: [pool default] 'user' directive is ignored when FPM is not running as root
START
[30-May-2023 10:14:56] NOTICE: fpm is running, pid 10
[30-May-2023 10:14:56] NOTICE: ready to handle connections
NOTICE: PHP message: PHP Parse error:  syntax error, unexpected single-quoted string "vendor/autoload.php" in /var/task/in…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@pbayly-kax
Comment options

Answer selected by pbayly-kax
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants