Skip to content

Muting logging for specific module doesn't work #3

@xairaven

Description

@xairaven

#1, #2 describes problems that the teloxide team does not want to solve.

Mine solution was to mute logs from certain teloxide modules, but the solution does not work.

Code:

// Issue #1, https://github.com/xairaven/MediaFetchBot/issues/2
.level_for("teloxide::update_listeners::polling", LevelFilter::Debug)
// Issue #2, https://github.com/xairaven/MediaFetchBot/issues/1
.level_for("teloxide::error_handlers", LevelFilter::Debug)

Log example:

[2024-08-09 01:11 INFO teloxide::update_listeners::polling] retrying getting updates in 2s

Problem: There have to be DEBUG level, not INFO

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions