This commit is contained in:
Skye 2024-06-15 12:50:51 +09:00
parent d0551eb090
commit ad2b6c2525
Signed by: me
GPG key ID: 0104BC05F41B77B8

View file

@ -25,7 +25,7 @@ use tokio::{
net::{TcpListener, TcpStream},
};
use tracing::{error, info};
use tracing_subscriber::prelude::*;
use tracing_subscriber::{prelude::*, EnvFilter};
use crate::{
netty::{ReadExt, WriteExt},
@ -86,6 +86,7 @@ impl Drop for ClientCounterGuard {
async fn main() -> eyre::Result<()> {
let _guard = sentry::init(std::env::var("SENTRY_DSN").ok());
tracing_subscriber::registry()
.with(EnvFilter::from_default_env())
.with(tracing_subscriber::fmt::layer())
.with(sentry_tracing::layer())
.init();