Add better logging.
This commit is contained in:
@@ -77,14 +77,17 @@ pub(crate) async fn hook(
|
||||
message: None,
|
||||
}),
|
||||
),
|
||||
Err(_) => (
|
||||
// StatusCode::INTERNAL_SERVER_ERROR,
|
||||
StatusCode::OK,
|
||||
Json(HookResponse {
|
||||
ok: false,
|
||||
message: Some("Failed to handle push event.".to_string()),
|
||||
}),
|
||||
),
|
||||
Err(e) => {
|
||||
tracing::error!("Failed to handle push event: {}", e);
|
||||
(
|
||||
// StatusCode::INTERNAL_SERVER_ERROR,
|
||||
StatusCode::OK,
|
||||
Json(HookResponse {
|
||||
ok: false,
|
||||
message: Some("Failed to handle push event.".to_string()),
|
||||
}),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
HookRequest::Unrecognized(payload) => (
|
||||
|
||||
Reference in New Issue
Block a user