mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
chg: [modules] improve error output
This commit is contained in:
parent
27b2679ba6
commit
eb6adc4b98
1 changed files with 4 additions and 1 deletions
|
@ -179,7 +179,10 @@ class AbstractModule(ABC):
|
||||||
trace = traceback.format_tb(err.__traceback__)
|
trace = traceback.format_tb(err.__traceback__)
|
||||||
trace = ''.join(trace)
|
trace = ''.join(trace)
|
||||||
self.logger.critical(f"Error in module {self.module_name}: {__name__} : {err}")
|
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}")
|
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)
|
self.logger.critical(trace)
|
||||||
|
|
||||||
if isinstance(err, ModuleQueueError):
|
if isinstance(err, ModuleQueueError):
|
||||||
|
|
Loading…
Reference in a new issue