diff --git a/cmd/wsh/cmd/wshcmd-view.go b/cmd/wsh/cmd/wshcmd-view.go index 2ac6f8504..40e4a82e7 100644 --- a/cmd/wsh/cmd/wshcmd-view.go +++ b/cmd/wsh/cmd/wshcmd-view.go @@ -14,7 +14,6 @@ import ( "github.com/wavetermdev/thenextwave/pkg/wshrpc" ) -var viewNewBlock bool var viewMagnified bool var viewCmd = &cobra.Command{ @@ -26,7 +25,6 @@ var viewCmd = &cobra.Command{ } func init() { - viewCmd.Flags().BoolVarP(&viewNewBlock, "newblock", "n", false, "open view in a new block") viewCmd.Flags().BoolVarP(&viewMagnified, "magnified", "m", false, "open view in magnified mode") rootCmd.AddCommand(viewCmd) } diff --git a/frontend/app/store/wshrpc.ts b/frontend/app/store/wshrpc.ts index 91ea2b375..32be95b00 100644 --- a/frontend/app/store/wshrpc.ts +++ b/frontend/app/store/wshrpc.ts @@ -91,6 +91,8 @@ function sendRawRpcMessage(msg: RpcMessage) { globalWS.pushMessage(wsMsg); } +const notFoundLogMap = new Map(); + function handleIncomingRpcMessage(msg: RpcMessage, eventHandlerFn: (event: WaveEvent) => void) { const isRequest = msg.command != null || msg.reqid != null; if (isRequest) { @@ -111,7 +113,10 @@ function handleIncomingRpcMessage(msg: RpcMessage, eventHandlerFn: (event: WaveE } const entry = openRpcs.get(msg.resid); if (entry == null) { - console.log("rpc response generator not found", msg); + if (!notFoundLogMap.has(msg.resid)) { + notFoundLogMap.set(msg.resid, true); + console.log("rpc response generator not found", msg); + } return; } entry.msgFn(msg);