Browse Source

fix unnecessary verbose logging

Tobias Conradi 10 years ago
parent
commit
99b6ead705

+ 6 - 3
VLC for iOS WatchKit Extension/VLCNowPlayingInterfaceController.m

@@ -121,19 +121,22 @@
 - (IBAction)playPausePressed {
     self.isPlaying = !self.isPlaying;
     [WKInterfaceController openParentApplication:@{@"name": @"playpause"} reply:^(NSDictionary *replyInfo, NSError *error) {
-        NSLog(@"playpause %@",replyInfo);
+        if (error)
+            NSLog(@"playpause failed with reply %@ error: %@",replyInfo,error);
     }];
 }
 
 - (IBAction)skipForward {
     [WKInterfaceController openParentApplication:@{@"name": @"skipForward"} reply:^(NSDictionary *replyInfo, NSError *error) {
-        NSLog(@"skipForward %@",replyInfo);
+        if (error)
+            NSLog(@"skipForward failed with reply %@ error: %@",replyInfo,error);
     }];
 }
 
 - (IBAction)skipBackward {
     [WKInterfaceController openParentApplication:@{@"name": @"skipBackward"} reply:^(NSDictionary *replyInfo, NSError *error) {
-        NSLog(@"skipBackward %@",replyInfo);
+        if (error)
+            NSLog(@"skipBackward failed with reply %@ error: %@",replyInfo,error);
     }];
 }
 

+ 0 - 2
VLC for iOS WatchKit Extension/VLCPlaylistInterfaceController.m

@@ -50,7 +50,6 @@ typedef enum {
 
 - (void)awakeWithContext:(id)context {
     [super awakeWithContext:context];
-    NSLog(@"%s",__PRETTY_FUNCTION__);
 
     WKInterfaceDevice *currentDevice = WKInterfaceDevice.currentDevice;
     CGRect screenRect = currentDevice.screenBounds;
@@ -103,7 +102,6 @@ typedef enum {
 - (void)willActivate {
     // This method is called when watch view controller is about to be visible to user
     [super willActivate];
-    NSLog(@"%s",__PRETTY_FUNCTION__);
     if (self.needsUpdate) {
         [self updateData];
     }