結果 : how to log error message in python