1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-05 09:17:54 +03:00

Removed a couple of "DEBUG" and fixed remote logging

"
This commit is contained in:
Adolfo Gómez García 2020-01-20 14:13:11 +01:00
parent 099c0d9861
commit b3324eec91
3 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ class UDSActorSvc(daemon.Daemon, CommonService):
self.finish()
return # Stop daemon if initializes told to do so
logger.debug('Initialized, setting ready')
# logger.debug('Initialized, setting ready')
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
self.setReady()

View File

@ -80,7 +80,7 @@ class Logger:
msg = message % args
# If remote logger is available, notify message to it (except DEBUG messages OFC)
try:
if self.remoteLogger and level <= DEBUG:
if self.remoteLogger and level >= DEBUG:
self.remoteLogger.log(self.own_token, level, msg)
except Exception as e:
self.localLogger.log(DEBUG, 'Log to broker: {}'.format(e))

View File

@ -240,8 +240,8 @@ class UDSActorSvc(win32serviceutil.ServiceFramework, CommonService):
event_system.Store(PROGID_EventSubscription, event_subscription)
logger.debug('Registered SENS')
logger.debug('Initialized, setting ready')
# logger.debug('Registered SENS')
# logger.debug('Initialized, setting ready')
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
self.setReady()