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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user