Prevent logging of content into public log. Only log server events

This commit is contained in:
Gregory John Casamento 2020-02-11 06:37:49 -05:00
parent d0e05bfc3f
commit bacceb1a46
3 changed files with 9 additions and 13 deletions

View file

@ -47,11 +47,11 @@ static int _clients = 0;
if(_clients == 0)
{
NSLog(@"Client count is zero, exiting");
NSDebugLog(@"Client count is zero, exiting");
exit(0);
}
NSLog(@"NSSpeechRecognizer server connection count = %d after disconnection", _clients);
NSDebugLog(@"NSSpeechRecognizer server connection count = %d after disconnection", _clients);
while((o = [en nextObject]) != nil)
{
if ([o isKindOfClass: self])
@ -87,7 +87,7 @@ static int _clients = 0;
+ (id)sharedServer
{
NSLog(@"NSSpeechRecognizer server connection count = %d after connection", _clients);
NSDebugLog(@"NSSpeechRecognizer server connection count = %d after connection", _clients);
return _sharedInstance;
}
@ -111,7 +111,7 @@ static int _clients = 0;
}
else
{
NSLog(@"Got engine starting... %@", _engine);
NSDebugLog(@"Got engine starting... %@", _engine);
[_engine start];
}

View file

@ -168,7 +168,7 @@ static const arg_t cont_args_def[] = {
if (in_speech && !utt_started)
{
utt_started = YES;
NSLog(@"Listening...");
NSDebugLog(@"Listening...");
}
if (!in_speech && utt_started)
@ -183,7 +183,7 @@ static const arg_t cont_args_def[] = {
[self performSelectorOnMainThread: @selector(_recognizedWord:)
withObject: recognizedString
waitUntilDone: NO];
NSLog(@"Word: %s", hyp);
NSDebugLog(@"Word: %s", hyp);
}
if (ps_start_utt(ps) < 0)