Skip to content

add psr-3 compatibility #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2025
Merged

add psr-3 compatibility #4

merged 2 commits into from
Jan 10, 2025

Conversation

dozer111
Copy link

I have tried to use this wrapper and face the problem:

Can't create app config: 1 error(s) decoding:

* cannot parse 'log-level' as int: strconv.ParseInt: parsing "debug": invalid syntax

this happens because my php project use psr-3 log-level values(string) instead of int


this pr teach fpm-wrapper to parse both int and psr-3 format values


psr-3: https://www.php-fig.org/psr/psr-3/#5-psrlogloglevel

dozer added 2 commits January 10, 2025 10:51
some time the "log-level" flag value can be string, other time - int

now it is possible to parse both variants

@see https://www.php-fig.org/psr/psr-3/#5-psrlogloglevel
@asp24 asp24 merged commit 4f4b9fd into code-tool:master Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants