fuck
This commit is contained in:
parent
d0551eb090
commit
ad2b6c2525
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,7 @@ use tokio::{
|
||||||
net::{TcpListener, TcpStream},
|
net::{TcpListener, TcpStream},
|
||||||
};
|
};
|
||||||
use tracing::{error, info};
|
use tracing::{error, info};
|
||||||
use tracing_subscriber::prelude::*;
|
use tracing_subscriber::{prelude::*, EnvFilter};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
netty::{ReadExt, WriteExt},
|
netty::{ReadExt, WriteExt},
|
||||||
|
@ -86,6 +86,7 @@ impl Drop for ClientCounterGuard {
|
||||||
async fn main() -> eyre::Result<()> {
|
async fn main() -> eyre::Result<()> {
|
||||||
let _guard = sentry::init(std::env::var("SENTRY_DSN").ok());
|
let _guard = sentry::init(std::env::var("SENTRY_DSN").ok());
|
||||||
tracing_subscriber::registry()
|
tracing_subscriber::registry()
|
||||||
|
.with(EnvFilter::from_default_env())
|
||||||
.with(tracing_subscriber::fmt::layer())
|
.with(tracing_subscriber::fmt::layer())
|
||||||
.with(sentry_tracing::layer())
|
.with(sentry_tracing::layer())
|
||||||
.init();
|
.init();
|
||||||
|
|
Loading…
Reference in a new issue