Skip to content

Commit

Permalink
ten gateway should log to sys_out
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Apr 25, 2024
1 parent 9b9821c commit 740a78c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/enclave/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions testnet/launcher/gateway/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tools/walletextension/main/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 740a78c

Please sign in to comment.