mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-07 17:17:55 +03:00
Removed a couple of "DEBUG" and fixed remote logging
"
This commit is contained in:
parent
099c0d9861
commit
b3324eec91
@ -73,7 +73,7 @@ class UDSActorSvc(daemon.Daemon, CommonService):
|
|||||||
self.finish()
|
self.finish()
|
||||||
return # Stop daemon if initializes told to do so
|
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...
|
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
|
||||||
self.setReady()
|
self.setReady()
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class Logger:
|
|||||||
msg = message % args
|
msg = message % args
|
||||||
# If remote logger is available, notify message to it (except DEBUG messages OFC)
|
# If remote logger is available, notify message to it (except DEBUG messages OFC)
|
||||||
try:
|
try:
|
||||||
if self.remoteLogger and level <= DEBUG:
|
if self.remoteLogger and level >= DEBUG:
|
||||||
self.remoteLogger.log(self.own_token, level, msg)
|
self.remoteLogger.log(self.own_token, level, msg)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.localLogger.log(DEBUG, 'Log to broker: {}'.format(e))
|
self.localLogger.log(DEBUG, 'Log to broker: {}'.format(e))
|
||||||
|
@ -240,8 +240,8 @@ class UDSActorSvc(win32serviceutil.ServiceFramework, CommonService):
|
|||||||
|
|
||||||
event_system.Store(PROGID_EventSubscription, event_subscription)
|
event_system.Store(PROGID_EventSubscription, event_subscription)
|
||||||
|
|
||||||
logger.debug('Registered SENS')
|
# logger.debug('Registered SENS')
|
||||||
logger.debug('Initialized, setting ready')
|
# logger.debug('Initialized, setting ready')
|
||||||
|
|
||||||
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
|
# Initialization is done, set machine to ready for UDS, communicate urls, etc...
|
||||||
self.setReady()
|
self.setReady()
|
||||||
|
Loading…
Reference in New Issue
Block a user