Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
SENSSOFT-120 #Fixed bug in logging. Should not interfere with other a…
…pplications logging handler.
  • Loading branch information
mooshu1x2 committed Oct 14, 2016
1 parent 0d0ea60 commit 800793a3a50af0bdbcdfb167e6d8ad38413f86a7
Showing 1 changed file with 7 additions and 4 deletions.
@@ -85,10 +85,11 @@ def __init__(self,
self.shutoff = shutoff

# Configure logging
self.logger = logging
self.logger = logging.getLogger ('userale')
self.logger.propagate = False
self.logger.setLevel (logging.INFO)
handler = logging.FileHandler (self.output)
self.logger.addHandler (handler)

# Mapping of all events to methods = {
@@ -161,11 +162,13 @@ def eventFilter (self, object, event):

# Filter data to higher or lower priority list
if data is not None:
print (_(data))
if self.resolution > 0 and t in self.hfreq and t in # data is in watched list and is a high frequency log
self.hlogs.append (data)
self.logs.append (data)

return super (Ale, self).eventFilter (object, event)

def cleanup (self):

0 comments on commit 800793a

Please sign in to comment.