improve diagnosti logging

This commit is contained in:
Richard Frith-Macdonald 2017-06-23 18:23:20 +01:00
parent 974811f604
commit cd378db33a
2 changed files with 5 additions and 4 deletions

View file

@ -12,6 +12,7 @@
after all initialisation. Add -ecAwaken, -ecDidAwaken, and
-ecConfigurationError: to make it easy to initialise stuff at the
start of -ecRun and to ignore config updates before that happens.
Improve diagnostic logging for registration failure.
2017-03-06 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -2845,16 +2845,16 @@ static NSString* cmdWord(NSArray* a, unsigned int pos)
}
else
{
[[self cmdLogFile: logname]
printf: @"registration attempt rejected - %@\n",
[conf objectForKey: @"rejected"]];
NSLog(@"Registering %@ with Control server: %@",
host, [conf objectForKey: @"rejected"]);
DESTROY(control);
}
}
}
NS_HANDLER
{
NSLog(@"Registering with control server: %@", localException);
NSLog(@"Registering %@ with Control server: %@",
host, localException);
DESTROY(control);
}
NS_ENDHANDLER