chore: improve webhook logging for better debugging
Some checks failed
Build MIPS Binary / build (push) Failing after 1m5s

This commit is contained in:
spinline
2026-02-13 12:38:29 +03:00
parent bb32c1f7f6
commit 0dd97f3d7e

View File

@@ -16,9 +16,15 @@ pub async fn torrent_finished_handler(
State(state): State<AppState>,
Query(params): Query<TorrentFinishedQuery>,
) -> StatusCode {
tracing::info!("Torrent finished notification received: {} ({})", params.name, params.hash);
tracing::info!("WEBHOOK: Received notification from rTorrent. Name: {:?}, Hash: {:?}", params.name, params.hash);
let message = format!("Torrent tamamlandı: {}", params.name);
let name = if params.name.is_empty() || params.name == "$d.name=" {
"Bilinmeyen Torrent".to_string()
} else {
params.name
};
let message = format!("Torrent tamamlandı: {}", name);
// 1. Send to active SSE clients (for Toast)
let notification = SystemNotification {