colcon-core icon indicating copy to clipboard operation
colcon-core copied to clipboard

Exception output

Open rotu opened this issue 5 years ago • 3 comments

Use logger.exception to format current traceback in an error

rotu avatar Mar 25 '20 23:03 rotu

@rotu Friendly ping.

dirk-thomas avatar Apr 14 '20 17:04 dirk-thomas

Oof. I dropped the ball here; converting to a draft. BTW, do you have a preference between logger.exception(msg) versus logger.error(msg, exc_info=True)?

rotu avatar Apr 14 '20 17:04 rotu

do you have a preference between logger.exception(msg) versus logger.error(msg, exc_info=True)?

Within an except I would lean toward the former since that is exactly what that method is supposed to be used for.

dirk-thomas avatar Apr 14 '20 17:04 dirk-thomas