Skip to content
New issue

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

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

Already on GitHub? # to your account

Update RdKafkaContext.php #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update RdKafkaContext.php
allow to set log_cb via configuration
  • Loading branch information
fab0492 authored Mar 19, 2025
commit 94baf142d5895a4d32375f26ca8ba771ca88f6e7
4 changes: 4 additions & 0 deletions RdKafkaContext.php
Original file line number Diff line number Diff line change
@@ -205,6 +205,10 @@ private function getConf(): Conf
$this->conf->setDrMsgCb($this->config['dr_msg_cb']);
}

if (isset($this->config['log_cb'])) {
$this->conf->setLogCb($this->config['log_cb']);
}

if (isset($this->config['error_cb'])) {
$this->conf->setErrorCb($this->config['error_cb']);
}