colcon-core
colcon-core copied to clipboard
Exception output
Use logger.exception to format current traceback in an error
@rotu Friendly ping.
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)?
do you have a preference between
logger.exception(msg)versuslogger.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.