Unknown object log entry less severe

- unnecessarily classified as critical
- fixes #1023
This commit is contained in:
Peter Šurda 2017-07-05 09:01:40 +02:00
parent e00a02206b
commit 773d91bbe2
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,10 @@ class objectProcessor(threading.Thread):
elif objectType == 'checkShutdownVariable': # is more of a command, not an object type. Is used to get this thread past the queue.get() so that it will check the shutdown variable.
logger.critical('Error! Bug! The class_objectProcessor was passed an object type it doesn\'t recognize: %s' % str(objectType))
if isinstance(objectType, int):
logger.info('Don\'t know how to handle object type 0x%08X', objectType)
logger.info('Don\'t know how to handle object type %s', objectType)
except helper_msgcoding.DecompressionSizeException as e:
logger.error("The object is too big after decompression (stopped decompressing at %ib, your configured limit %ib). Ignoring", e.size, BMConfigParser().safeGetInt("zlib", "maxsize"))
except varintDecodeError as e: