improve reporting of debug status

This commit is contained in:
Richard Frith-Macdonald 2019-10-05 15:43:58 +01:00
parent d73852fbad
commit 1a8d6f6195
3 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2019-10-05 Richard Frith-Macdonald <rfm@gnu.org>
* EcLogger.m:
* EcProcess.m:
The debug command at the Console should report when debug (STDERR)
is suppressed.
2019-10-04 Richard Frith-Macdonald <rfm@gnu.org>
* EcCommand.m:

View file

@ -187,7 +187,7 @@ static NSArray *modes;
[lock lock];
if (NO == shouldForward)
{
[s appendFormat: @"%@ output via NSLog only.\n", key];
[s appendFormat: @"%@ output to file only.\n", key];
}
else if (size == 0)
{

View file

@ -4208,6 +4208,11 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
[self cmdPrintf: @"%@\n", cmdDebugKnown];
}
else if (YES == cmdKillDebug)
{
[self cmdPrintf:
@"All output to STDERR suppressed by KillDebugOutput=YES\n"];
}
else if ([msg count] > 1)
{
NSString *mode = (NSString*)[msg objectAtIndex: 1];