Skip to content

Commit 35ba5e6

Browse files
committed
revert changes in error handling
1 parent 778b14d commit 35ba5e6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: server/svix-server/src/core/operational_webhooks.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ impl OperationalWebhookSenderInner {
161161
.to_string();
162162

163163
let recipient_org_id = recipient_org_id.to_string();
164-
let url_clone = url.clone(); // Clone for use in the async block
165164

166165
tokio::spawn(async move {
167166
// This sends a webhook under the Svix management organization. This organization contains
@@ -182,7 +181,7 @@ impl OperationalWebhookSenderInner {
182181

183182
match resp {
184183
Ok(_) => {}
185-
// Handle 404s with more context
184+
// Ignore 404s because not every org will have an associated application
186185
Err(svix::error::Error::Http(svix::error::HttpErrorContent {
187186
status: StatusCode::NOT_FOUND,
188187
..
@@ -194,9 +193,8 @@ impl OperationalWebhookSenderInner {
194193
}
195194
Err(e) => {
196195
tracing::error!(
197-
"Failed sending operational webhook for {} to URL {}: {}",
196+
"Failed sending operational webhook for {} {}",
198197
recipient_org_id,
199-
url_clone,
200198
e.to_string()
201199
);
202200
}

0 commit comments

Comments
 (0)