Skip to content

Unable to disable logs for python bindings #6459

@mannjani

Description

@mannjani

Describe the bug
I am not able to disable logs from python bindings.
I have tried passing an empty file into log_conf_file_path.
I have tried passing a valid log4cxx configuration file without any console appenders.
It is still printing logs on the console

To Reproduce
Steps to reproduce the behavior:

  1. Create an empty file named empty
  2. Start python console
  3. import pulsar
  4. c = pulsar.Client(service_url=<service_url>, log_conf_file_path="empty")
  5. p = c.create_producer("topic")
  6. See on console:

2020-03-02 08:51:39.476 INFO ConnectionPool:85 | Created connection for <service_url>
2020-03-02 08:51:39.477 INFO ClientConnection:330 | ... Connected to broker
2020-03-02 08:51:39.482 INFO HandlerBase:53 | [persistent://public/default/delete, ] Getting connection from pool
....

Expected behavior
There should be no logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions