diff --git a/local/snapshot.go b/local/snapshot.go index 9e65bed5..a840ccd7 100644 --- a/local/snapshot.go +++ b/local/snapshot.go @@ -70,6 +70,8 @@ func NewNetworkFromSnapshot( subnetConfigs map[string]string, flags map[string]interface{}, reassignPortsIfUsed bool, + redirectStdout bool, + redirectStderr bool, ) (network.Network, error) { net, err := newNetwork( log, @@ -83,6 +85,8 @@ func NewNetworkFromSnapshot( rootDir, snapshotsDir, reassignPortsIfUsed, + redirectStdout, + redirectStderr, ) if err != nil { return net, err diff --git a/server/network.go b/server/network.go index 95d866c4..6fa2771a 100644 --- a/server/network.go +++ b/server/network.go @@ -235,7 +235,7 @@ func (lc *localNetwork) Start(ctx context.Context) error { } ux.Print(lc.log, logging.Blue.Wrap(logging.Bold.Wrap("create and run local network"))) - nw, err := local.NewNetwork(lc.log, lc.cfg, lc.options.rootDataDir, lc.options.snapshotsDir, lc.options.reassignPortsIfUsed) + nw, err := local.NewNetwork(lc.log, lc.cfg, lc.options.rootDataDir, lc.options.snapshotsDir, lc.options.reassignPortsIfUsed, lc.options.redirectNodesOutput, lc.options.redirectNodesOutput) if err != nil { return err } @@ -519,6 +519,8 @@ func (lc *localNetwork) LoadSnapshot(snapshotName string) error { lc.options.subnetConfigs, globalNodeConfig, lc.options.reassignPortsIfUsed, + lc.options.redirectNodesOutput, + lc.options.redirectNodesOutput, ) if err != nil { return err