From 780eb8412d27bba1eaaf0a03ab74f90c62f28253 Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Thu, 5 Jan 2006 23:07:26 +0000 Subject: [PATCH] Removed Audioscrobbler NSLog debug --- AudioscrobblerController.m | 3 --- MainController.m | 4 ---- PreferencesController.m | 2 -- 3 files changed, 9 deletions(-) diff --git a/AudioscrobblerController.m b/AudioscrobblerController.m index 270704b..bc56007 100644 --- a/AudioscrobblerController.m +++ b/AudioscrobblerController.m @@ -220,7 +220,6 @@ static AudioscrobblerController *_sharedController = nil; //Create and send the request NSMutableURLRequest *request = [[NSURLRequest requestWithURL:_postURL cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15] mutableCopy]; - NSLog(@"Posting Audioscrobbler URL request: %@", requestString); [request setHTTPMethod:@"POST"]; [request setHTTPBody:[requestString dataUsingEncoding:NSUTF8StringEncoding]]; _currentStatus = AudioscrobblerSubmittingTracksStatus; @@ -270,7 +269,6 @@ static AudioscrobblerController *_sharedController = nil; responseAction = [lines objectAtIndex:0]; } ITDebugLog(@"Audioscrobbler: Response %@", string); - NSLog(@"Audioscrobbler: Response %@", string); if (_currentStatus == AudioscrobblerRequestingHandshakeStatus) { if ([lines count] < 2) { //We have a protocol error @@ -320,7 +318,6 @@ static AudioscrobblerController *_sharedController = nil; //Bad auth } else if (([responseAction length] > 5) && [[responseAction substringToIndex:5] isEqualToString:@"FAILED"]) { ITDebugLog(@"Audioscrobbler: Submission failed (%@)", [responseAction substringFromIndex:6]); - NSLog(@"Audioscrobbler: Submission failed (%@)", [responseAction substringFromIndex:6]); key = @"audioscrobbler_submission_failed"; comment = @"Last track submission failed - see console for error"; //Failed diff --git a/MainController.m b/MainController.m index 294e52c..4cfd11c 100755 --- a/MainController.m +++ b/MainController.m @@ -636,7 +636,6 @@ static MainController *sharedController; int elapsed = [[self currentRemote] currentSongPlayed], length = [[self currentRemote] currentSongDuration], requiredInterval = ((length / 2 < 240) ? length / 2 : 240); if ((abs(elapsed - requiredInterval) < 5) && ([[self currentRemote] playerPlayingState] == ITMTRemotePlayerPlaying)) { NSString *title = [[self currentRemote] currentSongTitle], *artist = [[self currentRemote] currentSongArtist]; - NSLog(@"Audioscrobbler: Submitting"); if (title && artist) { ITDebugLog(@"Audioscrobbler: Submitting current track"); [[AudioscrobblerController sharedController] submitTrack:title @@ -647,12 +646,9 @@ static MainController *sharedController; } else if (requiredInterval - elapsed > 0) { _audioscrobblerInterval = requiredInterval - elapsed; [_audioscrobblerTimer release]; - NSLog(@"Audioscrobbler: Creating a new timer that will run in %i seconds", _audioscrobblerInterval); ITDebugLog(@"Audioscrobbler: Creating a new timer that will run in %i seconds", _audioscrobblerInterval); _audioscrobblerTimer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:_audioscrobblerInterval] interval:1.0 target:self selector:@selector(submitAudioscrobblerTrack:) userInfo:nil repeats:NO]; [[NSRunLoop currentRunLoop] addTimer:_audioscrobblerTimer forMode:NSDefaultRunLoopMode]; - } else { - NSLog(@"Audioscrobbler: Skipping submission. %i, %i", requiredInterval, elapsed); } NS_HANDLER [self networkError:localException]; diff --git a/PreferencesController.m b/PreferencesController.m index 0a796dc..2b1bbf8 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -183,7 +183,6 @@ static PreferencesController *prefs = nil; if (status != noErr) { ITDebugLog(@"Audioscrobbler: Error getting keychain item password: %i", status); } else { - NSLog(@"Audioscrobbler: password buffer: \"%s\" \"Length: %i\"", buffer, length); pass = [[NSString alloc] initWithBytes:buffer length:length encoding:NSUTF8StringEncoding]; } if (status != noErr) { @@ -192,7 +191,6 @@ static PreferencesController *prefs = nil; SecKeychainItemFreeContent(NULL, buffer); CFRelease(item); } - NSLog(@"Audioscrobbler: Retrieved password: \"%@\"", pass); return [pass autorelease]; } -- 2.20.1