Make sure we log the whole text of any configuration error (using NSLog())

before truncating it (if necessary) to create an alarm.
This commit is contained in:
Richard Frith-Macdonald 2018-08-28 11:50:47 +01:00
parent 6693ee6330
commit ce9f465c86

View file

@ -2347,8 +2347,11 @@ static BOOL ecDidAwaken = NO;
{
EcAlarm *a;
/* Truncate additional text to fit if necessary.
/* We may need to truncate additional text to fit the limit for
* an alarm, so we must log to stderr *before* doing that.
*/
NSLog(@"ecConfigurationError: %@", err);
err = [err stringByTrimmingSpaces];
if ([err length] > 255)
{