From 740a78c8f172d3531ece10fb98b9b9d29f0f7575 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Thu, 25 Apr 2024 13:54:15 +0100 Subject: [PATCH] ten gateway should log to sys_out --- go/enclave/rpc_server.go | 2 +- testnet/launcher/gateway/docker.go | 1 + tools/walletextension/main/cli.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/go/enclave/rpc_server.go b/go/enclave/rpc_server.go index a35a9c5c1f..8cd8f8f720 100644 --- a/go/enclave/rpc_server.go +++ b/go/enclave/rpc_server.go @@ -475,7 +475,7 @@ func (s *RPCServer) decodeBlock(encodedBlock []byte) (*types.Block, error) { block := types.Block{} err := rlp.DecodeBytes(encodedBlock, &block) if err != nil { - return &types.Block{}, fmt.Errorf("unable to decode block, bytes=%x, err=%w", encodedBlock, err) + return nil, fmt.Errorf("unable to decode block, bytes=%x, err=%w", encodedBlock, err) } return &block, nil } diff --git a/testnet/launcher/gateway/docker.go b/testnet/launcher/gateway/docker.go index 3bde82b592..7be1786b72 100644 --- a/testnet/launcher/gateway/docker.go +++ b/testnet/launcher/gateway/docker.go @@ -32,6 +32,7 @@ func (n *DockerGateway) Start() error { "--nodePortWS", fmt.Sprintf("%d", n.cfg.tenNodeWSPort), "--nodeHost", n.cfg.tenNodeHost, "--dbType", "sqlite", + "--logPath", "sys_out", } _, err := docker.StartNewContainer("gateway", n.cfg.dockerImage, cmds, []int{n.cfg.gatewayHTTPPort, n.cfg.gatewayWSPort}, nil, nil, nil) diff --git a/tools/walletextension/main/cli.go b/tools/walletextension/main/cli.go index dbbe72a9a0..0e7f564c4c 100644 --- a/tools/walletextension/main/cli.go +++ b/tools/walletextension/main/cli.go @@ -33,7 +33,7 @@ const ( nodeWebsocketPortUsage = "The port on which to connect to the Obscuro node via RPC over websockets. Default: 81." logPathName = "logPath" - logPathDefault = "wallet_extension_logs.txt" + logPathDefault = "sys_out" logPathUsage = "The path to use for the wallet extension's log file" databasePathName = "databasePath"