👍️[Update] Main/Controller : logをjsonとしてstdに送信するように変更

This commit is contained in:
misyaguziya
2024-08-09 01:31:59 +09:00
parent e8fd6b724d
commit 8780624689
3 changed files with 105 additions and 275 deletions

View File

@@ -193,7 +193,7 @@ action_mapping = {
"/controller/callback_enable_check_mic_threshold": {"mic":"/action/check_mic_threshold_energy"},
}
def handleConfigRequest(endpoint, _data):
def handleConfigRequest(endpoint):
handler = config_mapping.get(endpoint)
if handler is None:
response = "Invalid endpoint"
@@ -256,7 +256,7 @@ def main():
try:
match endpoint.split("/")[1]:
case "config":
result_data, status = handleConfigRequest(endpoint, data)
result_data, status = handleConfigRequest(endpoint)
case "controller":
result_data, status = handleControllerRequest(endpoint, data)
case _: