summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-27 20:24:21 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-27 20:24:21 +0000
commitc1b842bf8b439dd01da4c86b5a24fe198ac73bab (patch)
tree7974779ca0e1b0b82ecb304e3163a87269fc1e3e /src/main.rs
parent842edd5a75a091a58ea04b6f4d2ef7cf0b0285ea (diff)
Add Sentry
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
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() {