🔧 Use LOG instead of NSLOG

This commit is contained in:
Felix Rieseberg 2017-12-13 14:47:23 -08:00
parent 61ec8df418
commit 76d9756fb9
3 changed files with 4 additions and 4 deletions

View file

@ -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] << ")";
}
}

View file

@ -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) {

View file

@ -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;