Skip to content

Commit 472537b

Browse files
committed
sentry - add errors context
1 parent b9cfe2d commit 472537b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sentry/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async fn run<A: Adapter + 'static>(app: Application<A>, _clustered: bool, port:
145145
let server = Server::bind(&addr).serve(make_service);
146146

147147
if let Err(e) = server.await {
148-
error!(&logger, "server error: {}", e);
148+
error!(&logger, "server error: {}", e; "main" => "run");
149149
}
150150
}
151151

sentry/src/routes/analytics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,6 @@ async fn cache(
111111
.query_async::<_, ()>(&mut redis.clone())
112112
.await
113113
{
114-
error!(&logger, "server error: {}", err);
114+
error!(&logger, "Server error: {}", err; "module" => "analytics-cache");
115115
}
116116
}

0 commit comments

Comments
 (0)