Only log successfull Bonjour if the logging flag is set

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@40182 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Jonathan Gillaspie 2016-10-27 16:12:41 +00:00
parent 1e919769c8
commit 296de597ed

View file

@ -1960,7 +1960,6 @@ LRESULT CALLBACK windowEnumCallback(HWND hwnd, LPARAM lParam)
else
{
NSDebugMLLog(@"WIN32", @"service 'Bonjour' is installed");
NSWarnMLog(@"service 'Bonjour' is installed");
result = YES;
// Cleanup...
@ -2007,7 +2006,6 @@ LRESULT CALLBACK windowEnumCallback(HWND hwnd, LPARAM lParam)
else
{
NSDebugMLLog(@"WIN32", @"service 'Bonjour' current state: %ld", serviceStatusInfo.dwCurrentState);
NSWarnMLog(@"service 'Bonjour' current state: %ld", serviceStatusInfo.dwCurrentState);
result = (serviceStatusInfo.dwCurrentState == SERVICE_RUNNING);
}