add traceback snippet to log