diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index b13be75..dac14e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,6 +32,14 @@ async fn main() { let app = create_app().await; let host = &CONFIG.allowed_host; + + match CONFIG.set_sentry_guard() { + Some(_) => {} + None => { + tracing::error!("Sentry not configured."); + } + }; + let addr = match host.parse::<SocketAddr>() { Ok(addr) => addr, Err(_) => match host.to_socket_addrs() { |
