disable filter because it actually suppresses all errors, not just timeout errors
This commit is contained in:
parent
c105166a8d
commit
cd92f2de43
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ use tracing_subscriber::{fmt, layer::Filter, layer::SubscriberExt, prelude::*};
|
||||||
//use super::util::VAR_LOG;
|
//use super::util::VAR_LOG;
|
||||||
|
|
||||||
// A layer filter to prevent polling timeout errors from clogging logs
|
// A layer filter to prevent polling timeout errors from clogging logs
|
||||||
|
// BUG: it suppresses all errors, including from sqlx
|
||||||
struct TeloxideNoiseFilter {}
|
struct TeloxideNoiseFilter {}
|
||||||
impl<S: Subscriber> Filter<S> for TeloxideNoiseFilter {
|
impl<S: Subscriber> Filter<S> for TeloxideNoiseFilter {
|
||||||
fn enabled(
|
fn enabled(
|
||||||
|
|
@ -47,7 +48,7 @@ pub fn log_init() {
|
||||||
|
|
||||||
let stdout_layer = fmt::layer()
|
let stdout_layer = fmt::layer()
|
||||||
.with_writer(io::stdout)
|
.with_writer(io::stdout)
|
||||||
.with_filter(TeloxideNoiseFilter {})
|
//.with_filter(TeloxideNoiseFilter {})
|
||||||
.with_filter(LOG_LEVEL);
|
.with_filter(LOG_LEVEL);
|
||||||
|
|
||||||
tracing_subscriber::registry()
|
tracing_subscriber::registry()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue