From 72a7d598d51ad31d5a8bf6b36f36dad3cd7a1681 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 3 Jun 2009 14:30:49 +0000 Subject: [PATCH] Monotone-Parent: 3556596e54bd1f81160e5c10120b46259ec240f8 Monotone-Revision: fd483b959e9ace05c008817b99952497b2b47141 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-03T14:30:49 Monotone-Branch: ca.inverse.sogo --- SOPE/GDLContentStore/ChangeLog | 6 ++++++ SOPE/GDLContentStore/GCSFolderManager.m | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/SOPE/GDLContentStore/ChangeLog b/SOPE/GDLContentStore/ChangeLog index 9093b1b91..ba46ca2ff 100644 --- a/SOPE/GDLContentStore/ChangeLog +++ b/SOPE/GDLContentStore/ChangeLog @@ -1,3 +1,9 @@ +2009-06-03 Wolfgang Sourdeau + + * GCSFolderManager.m: replaced invocations of NSLog with + debugWithFormat:. This avoids polluting the log with information + that really pertains to debugging. + 2009-06-02 Wolfgang Sourdeau * GCSFolder.m ([GCSFolder -recordsCountByExcludingDeleted:]): new diff --git a/SOPE/GDLContentStore/GCSFolderManager.m b/SOPE/GDLContentStore/GCSFolderManager.m index fd0e70b77..773e40974 100644 --- a/SOPE/GDLContentStore/GCSFolderManager.m +++ b/SOPE/GDLContentStore/GCSFolderManager.m @@ -130,7 +130,8 @@ static NSLock *lock; __PRETTY_FUNCTION__, [url absoluteString]); return nil; } - NSLog(@"Note: setup default manager at: %@", url); + if (debugOn) + [self debugWithFormat:@"Note: setup default manager at: %@", url]; } #if defined(THREADSAFE) [lock unlock]; @@ -155,7 +156,7 @@ static NSLock *lock; typeMap = [NSMutableDictionary dictionaryWithCapacity:count]; - [self logWithFormat:@"Note: loading %d GCS folder types:", count]; + [self debugWithFormat:@"Note: loading %d GCS folder types:", count]; for (i = 0, count = [types count]; i < count; i++) { NSString *type; GCSFolderType *typeObject; @@ -163,7 +164,7 @@ static NSLock *lock; type = [[types objectAtIndex:i] stringByDeletingPathExtension]; typeObject = [GCSFolderType folderTypeWithName: type]; - [self logWithFormat:@" %@: %s", + [self debugWithFormat:@" %@: %s", type, [typeObject isNotNull] ? "OK" : "FAIL"]; [typeMap setObject: typeObject forKey:type]; }