From cd378db33a079046feb737d48268f6aefa3e64e2 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Fri, 23 Jun 2017 18:23:20 +0100 Subject: [PATCH] improve diagnosti logging --- ChangeLog | 1 + EcCommand.m | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 39951d7..89527fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/EcCommand.m b/EcCommand.m index 9158e8d..1948b4e 100644 --- a/EcCommand.m +++ b/EcCommand.m @@ -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