xairaven / MediaFetchBot

A Telegram bot written in Rust that downloads videos and photo-slides from TikTok. Send a link, get the media file instantly.
MIT License
1 stars 0 forks source link

Muting logging for specific module doesn't work #3

Open xairaven opened 3 months ago

xairaven commented 3 months ago

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:

https://github.com/xairaven/MediaFetchBot/blob/292b9e96d273f030e018b45ae8c0771a990391a5/media_fetch_bot/src/logger.rs#L16-L19

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

xairaven commented 3 months ago

https://github.com/daboross/fern/issues/136