mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
🔧 Use LOG instead of NSLOG
This commit is contained in:
@@ -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] << ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user