We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
remote: [2019-10-23 02:08:27] production.ERROR: Expected the key "warn" to exist. {"exception":"[object] (InvalidArgumentException(code: 0): Expected the key "warn" to exist. at /tmp/build_3675d0708815f595c355f5bbcf66d8d8/vendor/webmozart/assert/src/Assert.php:1696) remote: [stacktrace] remote: #0 /tmp/build_3675d0708815f595c355f5bbcf66d8d8/vendor/webmozart/assert/src/Assert.php(1417): Webmozart\Assert\Assert::reportInvalidArgument('Expected the ke...') remote: #1 /tmp/build_3675d0708815f595c355f5bbcf66d8d8/vendor/scoutapp/scout-apm-php/src/Logger/FilteredLogLevelDecorator.php(44): Webmozart\Assert\Assert::keyExists(Array, 'warn')
The text was updated successfully, but these errors were encountered:
I had SCOUT_LOG_LEVEL set to WARN, but that error is super opaque on what's happening.
Also, is 'warn' not a valid log level? or is it the all caps that tripped it up?
Sorry, something went wrong.
Happy to rename the error; but the key should indeed be warning not warn, see:
warning
warn
https://github.com/php-fig/log/blob/master/Psr/Log/LogLevel.php
These are the standardised log levels in PHP...
It'd be great if we can clarify the error message and give the user a pointer on how to fix it.
Yup, I can definitely do that!
asgrim
Successfully merging a pull request may close this issue.
remote: [2019-10-23 02:08:27] production.ERROR: Expected the key "warn" to exist. {"exception":"[object] (InvalidArgumentException(code: 0): Expected the key "warn" to exist. at /tmp/build_3675d0708815f595c355f5bbcf66d8d8/vendor/webmozart/assert/src/Assert.php:1696)
remote: [stacktrace]
remote: #0 /tmp/build_3675d0708815f595c355f5bbcf66d8d8/vendor/webmozart/assert/src/Assert.php(1417): Webmozart\Assert\Assert::reportInvalidArgument('Expected the ke...')
remote: #1 /tmp/build_3675d0708815f595c355f5bbcf66d8d8/vendor/scoutapp/scout-apm-php/src/Logger/FilteredLogLevelDecorator.php(44): Webmozart\Assert\Assert::keyExists(Array, 'warn')
The text was updated successfully, but these errors were encountered: