👍️[Update] All : 不要なprintLogを削除 / なるべくtry exceptした場合にはerrorLogを保存するように変更

This commit is contained in:
misyaguziya
2024-12-16 23:38:05 +09:00
parent 030b8a9f01
commit 3fa819df3f
14 changed files with 73 additions and 67 deletions

View File

@@ -96,7 +96,6 @@ def printResponse(status:int, endpoint:str, result:Any=None) -> None:
response = json.dumps(response)
print(response, flush=True)
def errorLogging(error:Exception) -> None:
def errorLogging() -> None:
with open('error.log', 'a') as f:
f.write(f"error: {error}\n")
traceback.print_exc(file=f)