mirror of https://github.com/CIRCL/AIL-framework
chg: [modules] improve error output
parent
27b2679ba6
commit
eb6adc4b98
|
@ -179,7 +179,10 @@ class AbstractModule(ABC):
|
|||
trace = traceback.format_tb(err.__traceback__)
|
||||
trace = ''.join(trace)
|
||||
self.logger.critical(f"Error in module {self.module_name}: {__name__} : {err}")
|
||||
if message:
|
||||
self.logger.critical(f"Module {self.module_name} input message: {message}")
|
||||
if self.obj:
|
||||
self.logger.critical(f"{self.module_name} Obj: {self.obj.get_global_id()}")
|
||||
self.logger.critical(trace)
|
||||
|
||||
if isinstance(err, ModuleQueueError):
|
||||
|
|
Loading…
Reference in New Issue