Skip to content

How to disable startup log? #542

@slashmili

Description

@slashmili

Hi, I'm trying to find a way to disable the log that prints out on the producer start up

11:52:26.237 [notice]     :supervisor: {:local, :brod_sup}
    :started: [
  pid: #PID<0.369.0>,
  id: :my_producer,
  mfargs: {:brod_client, :start_link,
   [
     [localhost: 9092],
     :my_producer,
     [endpoints: [localhost: 9092], auto_start_producers: true]
   ]},
  restart_type: {:permanent, 10},
  shutdown: 5000,
  child_type: :worker
]

Do you know where does it happen? Went through all codes but couldn't find which module is emitting that.

The reason I don't disable notice log is because I still want to get info logs.

This startup log was not an issue so far. However since I moved to OTP 25 and using :public_key.cacerts_get() as in

             ssl_options: [
                verify: :verify_peer,
                cacerts: :public_key.cacerts_get(),
                customize_hostname_check: [
                  match_fun: :public_key.pkix_verify_hostname_match_fun(:https)
                ]
              ]

I see 160 lines of logs in my logs

Update:

Seems like it's from supervisor3.

As supervisor3 is mainly used by brod, would you mind if we change supervisor3?

To either not log the progress or log it with debug severity

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions