From ea10616c47557991e2f497a91fc62ec4532508c0 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Thu, 17 Mar 2005 15:07:57 +0000 Subject: [PATCH] Don't log config problems repeatedly .. once is enough. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20918 72102866-910b-0410-8b05-ffd578937521 --- Source/NSPathUtilities.m | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Source/NSPathUtilities.m b/Source/NSPathUtilities.m index 079110396..699165b51 100644 --- a/Source/NSPathUtilities.m +++ b/Source/NSPathUtilities.m @@ -334,9 +334,11 @@ static NSString *setUserGNUstepPath(NSString *userName, dict = GSReadStepConfFile(steprcFile); if (dict != nil) { - fprintf(stderr, "Warning: Configuration: The file %s has been deprecated. Please use the \nconfiguration file %s to set standard paths.\n", - [steprcFile fileSystemRepresentation], - stringify(GNUSTEP_CONFIGURATION_FILE)); + GSOnceFLog(@"Warning: Configuration: The file %s has been " + @"deprecated. Please use the configuration file %s to " + @"set standard paths.\n", + [steprcFile fileSystemRepresentation], + stringify(GNUSTEP_CONFIGURATION_FILE)); forceD = [[dict objectForKey: @"FORCE_DEFAULTS_ROOT"] boolValue]; forceU = [[dict objectForKey: @"FORCE_USER_ROOT"] boolValue]; ASSIGN(oldDRoot, [dict objectForKey: @"GNUSTEP_DEFAULTS_ROOT"]); @@ -442,27 +444,27 @@ void InitialisePathUtilities(void) o = [d objectForKey: @"FORCE_DEFAULTS_ROOT"]; if (o != nil) { - fprintf(stderr, "Warning: Configuration: " + GSOnceFLog(@"Warning: Configuration: " "FORCE_DEFAULTS_ROOT is deprecated.\n"); forceD = [o boolValue]; } o = [d objectForKey: @"FORCE_USER_ROOT"]; if (o != nil) { - fprintf(stderr, "Warning: Configuration: " + GSOnceFLog(@"Warning: Configuration: " "FORCE_USER_ROOT is deprecated.\n"); forceU = [o boolValue]; } ASSIGN(oldDRoot, [d objectForKey: @"GNUSTEP_DEFAULTS_ROOT"]); if (oldDRoot != nil) { - fprintf(stderr, "Warning: Configuration: " + GSOnceFLog(@"Warning: Configuration: " "GNUSTEP_DEFAULTS_ROOT is deprecated.\n"); } ASSIGN(oldURoot, [d objectForKey: @"GNUSTEP_USER_ROOT"]); if (oldURoot != nil) { - fprintf(stderr, "Warning: Configuration: " + GSOnceFLog(@"Warning: Configuration: " "GNUSTEP_USER_ROOT is deprecated.\n"); } }