logs only when in DEBUG

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8493 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Robert Slover 2001-01-07 14:10:59 +00:00
parent 04d292688f
commit d59201b358

View file

@ -199,7 +199,9 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
id<ProjectType> concretBuilder;
PCProject *project;
#ifdef DEBUG
NSLog([NSString stringWithFormat:@"Builders %@ for key %@",[builders description],builderKey]);
#endif DEBUG
concretBuilder = [NSClassFromString([builders objectForKey:builderKey]) sharedCreator];
@ -210,9 +212,11 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
}
}
}
#ifdef DEBUG
else {
NSLog(@"No project manager delegate available!");
}
#endif DEBUG
return nil;
}
@ -222,7 +226,9 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
BOOL isDir = NO;
if ([loadedProjects objectForKey:aPath]) {
#ifdef DEBUG
NSLog([NSString stringWithFormat:@"Project %@ is already loaded!",aPath]);
#endif DEBUG
return NO;
}
@ -230,7 +236,9 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
PCProject *project = [self loadProjectAt:aPath];
if (!project) {
#ifdef DEBUG
NSLog(@"Couldn't instantiate the project...");
#endif DEBUG
return NO;
}
@ -421,7 +429,9 @@ NSString *ActiveProjectDidChangeNotification = @"ActiveProjectDidChange";
{
NSString *path = nil;
NSLog(@"<%@ %x>: will create file %@ for key %@",[self class],self,aFile,key);
#ifdef DEBUG
NSLog(@"%@ %x: will create file %@ for key %@.",[self class],self,aFile,key);
#endif DEBUG
if ([activeProject doesAcceptFile:aFile forKey:key] ) {
path = [[activeProject projectPath] stringByAppendingPathComponent:aFile];