Hi there,
Would you have any advice on how to catch multi-line errors?
We usually get printouts that include a traceback, where the first line notes that we have a critical error, then follows the traceback in multiple lines. If i set the ‘critical error’ to be handled by deadline, it cuts off the log before the traceback, so it makes troubleshooting the problem harder.
Here is an example:
0: STDOUT: Mon Jan 28 13:53:35 2013 (+498ms) : debug : Registering Node Class : “ScanlineScript”
0: STDOUT: Mon Jan 28 13:53:35 2013 (+36ms) : critical error : Error in Maya startup: Traceback (most recent call last):
0: STDOUT: File “C:\svnTools\trunk\S2\exchange\software\managed\SoftwareConfiguration\mayaShared\env\configs\default\modules\mayaStartup.py”, line 50, in mayaStartup
0: STDOUT: evaluateAllScNodes()
0: STDOUT: File “C:\svnTools\trunk\S2\exchange\software\managed\SoftwareConfiguration\mayaShared\env\configs\default\modules\mayaStartup.py”, line 39, in evaluateAllScNodes
0: STDOUT: from scNodes import core, publish, rigs, models, cameras, alembic, images, mocapAnimation, rigCache, resourceList, mayaScene, nullAnimation, xmesh, mayaRigCache
0: STDOUT: File “C:\svnTools\trunk\S2\exchange\software\managed\SoftwareConfiguration\mayaShared\env\configs\default\modules\scNodes\publish.py”, line 24, in
0: STDOUT: import scl.farm.submission
0: INFO: Deadline is ignoring error: “ImportError: No module named farm.submission” because plugin setting Strict Error Checking is enabled and this error is not usually fatal.
0: STDOUT: ImportError: No module named farm.submission
Anything after the bold/italic line would be cut off if we enable the ‘critical error’ string to fail the task.