You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: "Sentry\\Severity::fromError(): Argument #1 ($severity) must be of type int, string given, called in /app/vendor/connehito/cake-sentry/src/Http/Client.php on line 144"
"notice", "alert", "critical" and "emergency" are log levels as a string which cause a TypeError when passed to the "fromError" method.
Since Sentry does not support these log levels, it tries to set them to the "Error" level (notices as info level), but it fails because the "fromError" method only accepts integers as the level.
With the call $engine->log(E_NOTICE, "Notice thing", ['bla'=>new \Exception('Notice exception')]);
it works again. The error is logged with info level.
Please adapt the method so that all log levels are mapped correctly, regardless of whether they are strings or integers.
My workaround is now to overwrite the log method and set the log level myself before passing it to the parent method. Not nice.
Thanks
The text was updated successfully, but these errors were encountered:
Hallo,
Error:
"Sentry\\Severity::fromError(): Argument #1 ($severity) must be of type int, string given, called in /app/vendor/connehito/cake-sentry/src/Http/Client.php on line 144"
"notice", "alert", "critical" and "emergency" are log levels as a string which cause a TypeError when passed to the "fromError" method.
Since Sentry does not support these log levels, it tries to set them to the "Error" level (notices as info level), but it fails because the "fromError" method only accepts integers as the level.
With the call
$engine->log(E_NOTICE, "Notice thing", ['bla'=>new \Exception('Notice exception')]);
it works again. The error is logged with info level.
Please adapt the method so that all log levels are mapped correctly, regardless of whether they are strings or integers.
My workaround is now to overwrite the log method and set the log level myself before passing it to the parent method. Not nice.
Thanks
The text was updated successfully, but these errors were encountered: