mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-22 19:31:53 +00:00
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:
parent
6693ee6330
commit
ce9f465c86
1 changed files with 4 additions and 1 deletions
|
@ -2347,8 +2347,11 @@ static BOOL ecDidAwaken = NO;
|
||||||
{
|
{
|
||||||
EcAlarm *a;
|
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];
|
err = [err stringByTrimmingSpaces];
|
||||||
if ([err length] > 255)
|
if ([err length] > 255)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue