👍️[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

@@ -5,7 +5,7 @@ from typing import Any
from threading import Thread
from queue import Queue
from webui_controller import Controller
from utils import printLog, printResponse, encodeBase64
from utils import printLog, printResponse, errorLogging, encodeBase64
controller = Controller()
@@ -334,8 +334,7 @@ class Main:
status = response.get("status", None)
result = response.get("result", None)
except Exception as e:
from utils import errorLogging
errorLogging(e)
errorLogging()
result = str(e)
status = 500
return result, status
@@ -347,8 +346,7 @@ class Main:
endpoint, data = self.queue.get()
result, status = self.handleRequest(endpoint, data)
except Exception as e:
from utils import errorLogging
errorLogging(e)
errorLogging()
result = str(e)
status = 500