diff --git a/brightray/browser/mac/cocoa_notification.mm b/brightray/browser/mac/cocoa_notification.mm index df60f969d642..94b8f93fdc3f 100644 --- a/brightray/browser/mac/cocoa_notification.mm +++ b/brightray/browser/mac/cocoa_notification.mm @@ -38,7 +38,7 @@ void CocoaNotification::Show(const NotificationOptions& options) { g_identifier_++; if (getenv("ELECTRON_DEBUG_NOTIFICATIONS")) { - NSLog(@"%s (%@)", "Cocoa notification created", identifier); + LOG(INFO) << "Notification created (" << [identifier UTF8String] << ")"; } if ([notification_ respondsToSelector:@selector(setContentImage:)] && @@ -111,7 +111,7 @@ void CocoaNotification::NotificationButtonClicked() { void CocoaNotification::LogAction(const char* action) { if (getenv("ELECTRON_DEBUG_NOTIFICATIONS")) { NSString* identifier = [notification_ valueForKey:@"identifier"]; - NSLog(@"%s %s (%@)", "Cocoa notification", action, identifier); + LOG(INFO) << "Notification " << action << " (" << [identifier UTF8String] << ")"; } } diff --git a/brightray/browser/mac/notification_center_delegate.mm b/brightray/browser/mac/notification_center_delegate.mm index c1a427e5f074..6c9fb7f277dd 100644 --- a/brightray/browser/mac/notification_center_delegate.mm +++ b/brightray/browser/mac/notification_center_delegate.mm @@ -30,7 +30,7 @@ auto notification = presenter_->GetNotification(notif); if (getenv("ELECTRON_DEBUG_NOTIFICATIONS")) { - NSLog(@"%s (%@)", "Cocoa notification activated", notif.identifier); + LOG(INFO) << "Notification activated (" << [notif.identifier UTF8String] << ")"; } if (notification) { diff --git a/brightray/browser/mac/notification_presenter_mac.mm b/brightray/browser/mac/notification_presenter_mac.mm index ba403409b3f6..436584ac6557 100644 --- a/brightray/browser/mac/notification_presenter_mac.mm +++ b/brightray/browser/mac/notification_presenter_mac.mm @@ -24,7 +24,7 @@ CocoaNotification* NotificationPresenterMac::GetNotification( } if (getenv("ELECTRON_DEBUG_NOTIFICATIONS")) { - NSLog(@"%s \"%@\"", "Could not find cocoa notification for", ns_notification.identifier); + LOG(INFO) << "Could not find notification for " << [ns_notification.identifier UTF8String]; } return nullptr;