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
[2024-11-21T12:21:39.764122+00:00] Cron.ERROR: Uncaught Exception RuntimeException: "Message is invalid: additional key 'ctxt_invalid context' contains invalid characters" at /Users/ybelenko/Sites/bdo_pay/vendor/graylog2/gelf-php/src/Gelf/Publisher.php line 58 {"exception":"[object] (RuntimeException(code: 0): Message is invalid: additional key 'ctxt_invalid context' contains invalid characters at /Users/ybelenko/Sites/bdo_pay/vendor/graylog2/gelf-php/src/Gelf/Publisher.php:58)"} []
I guess Monolog should prepare $context and $extra for Publisher and strip spaces.
Valdiation part in vendor/graylog2/gelf-php/src/Gelf/MessageValidator.php:
Thanks, you're almost nailed it. But now I got TypeError
[2024-12-11T21:17:56.084934+01:00] Pay.ERROR: Uncaught Exception TypeError: "preg_replace(): Argument #3 ($subject) must be of type array|string, int given" at C:\WebServer\xampp\slick\main\vendor\monolog\monolog\src\Monolog\Formatter\GelfMessageFormatter.php line 130 {"exception":"[object] (TypeError(code: 0): preg_replace(): Argument #3 ($subject) must be of type array|string, int given at C:\\WebServer\\xampp\\slick\\main\\vendor\\monolog\\monolog\\src\\Monolog\\Formatter\\GelfMessageFormatter.php:130)"} []
because I use indexed array as context. Could you fix it with:
Monolog version 1|2|3?
With the basic log call
[2024-11-21T12:21:39.764122+00:00] Cron.ERROR: Uncaught Exception RuntimeException: "Message is invalid: additional key 'ctxt_invalid context' contains invalid characters" at /Users/ybelenko/Sites/bdo_pay/vendor/graylog2/gelf-php/src/Gelf/Publisher.php line 58 {"exception":"[object] (RuntimeException(code: 0): Message is invalid: additional key 'ctxt_invalid context' contains invalid characters at /Users/ybelenko/Sites/bdo_pay/vendor/graylog2/gelf-php/src/Gelf/Publisher.php:58)"} []
I guess Monolog should prepare
$context
and$extra
forPublisher
and strip spaces.Valdiation part in
vendor/graylog2/gelf-php/src/Gelf/MessageValidator.php
:The text was updated successfully, but these errors were encountered: