chore: remove debug logging from browser notifications

- Cleaned up verbose notification logs
- Kept error logging for troubleshooting
- Notifications confirmed working on Chrome/macOS
This commit is contained in:
spinline
2026-02-05 23:28:12 +03:00
parent 17551af8b5
commit 7ad6455a1e
2 changed files with 4 additions and 28 deletions

View File

@@ -213,13 +213,10 @@ pub fn provide_torrent_store() {
global_stats.set(stats);
}
AppEvent::Notification(n) => {
log::info!("📬 Received notification: {} - {}", n.level == shared::NotificationLevel::Success, n.message);
// Show toast notification
show_toast_with_signal(notifications, n.level.clone(), n.message.clone());
// Show browser notification for critical events
// (torrent completed, connection lost/restored, errors)
let is_critical = n.message.contains("tamamlandı")
|| n.message.contains("Reconnected")
|| n.message.contains("yeniden kuruldu")
@@ -227,7 +224,6 @@ pub fn provide_torrent_store() {
|| n.level == shared::NotificationLevel::Error;
if is_critical {
log::info!("🔴 Critical notification detected: {}", n.message);
let title = match n.level {
shared::NotificationLevel::Success => "✅ VibeTorrent",
shared::NotificationLevel::Error => "❌ VibeTorrent",