結果 : how to log errors in python