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
I use follow producer settings:
'producers' => [ 'test' => [ 'connection' => 'default', 'exchange_options' => [ 'name' => 'test', 'type' => 'direct', 'declare' => true, ], ], ],
and I dont want use logger. But I get error 'Undefined index: enable'
'Undefined index: enable'
I explain this library and I found this code
if ($this->logger['enable']) { ..... }
in vendor/mikemadisonweb/yii2-rabbitmq/components/Producer.php:73 but in this place $this->logger is equal null.
vendor/mikemadisonweb/yii2-rabbitmq/components/Producer.php:73
$this->logger
PS: also I found this code:
$this->logger = array_replace($this->getDefaultLoggerOptions(), $this->logger);
in vendor/mikemadisonweb/yii2-rabbitmq/Configuration.php:143 (in method loadConsumers)
Why you didnt use getDefaultLoggerOptions in method loadProducers ? How to fix it?
getDefaultLoggerOptions
The text was updated successfully, but these errors were encountered:
Hi Denis, Logger defaults setter has been added to Producer invocation as well: https://github.com/mikemadisonweb/yii2-rabbitmq/blob/master/Configuration.php#L82 Thank you for contribution. To fix your error, please update package to the latest version (1.5.1 currently) and you should be fine. Also, be advised that in new version queue and exchange default options was changed. There is a new section in README file about that: https://github.com/mikemadisonweb/yii2-rabbitmq#defaults
Sorry, something went wrong.
No branches or pull requests
I use follow producer settings:
and I dont want use logger.
But I get error
'Undefined index: enable'
I explain this library and I found this code
in
vendor/mikemadisonweb/yii2-rabbitmq/components/Producer.php:73
but in this place
$this->logger
is equal null.PS: also I found this code:
in vendor/mikemadisonweb/yii2-rabbitmq/Configuration.php:143 (in method loadConsumers)
Why you didnt use
getDefaultLoggerOptions
in method loadProducers ?How to fix it?
The text was updated successfully, but these errors were encountered: