mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
Write To Only One File For Geth Logs (#10769)
This commit is contained in:
@@ -151,11 +151,10 @@ func (m *Miner) Start(ctx context.Context) error {
|
||||
}
|
||||
|
||||
runCmd := exec.CommandContext(ctx, binaryPath, args...) // #nosec G204 -- Safe
|
||||
file, err := helpers.DeleteAndCreateFile(e2e.TestParams.LogPath, "eth1_miner.log")
|
||||
file, err := os.Create(path.Join(e2e.TestParams.LogPath, "eth1_miner.log"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
runCmd.Stdout = file
|
||||
runCmd.Stderr = file
|
||||
log.Infof("Starting eth1 miner with flags: %s", strings.Join(args[2:], " "))
|
||||
|
||||
|
||||
@@ -98,11 +98,10 @@ func (node *Node) Start(ctx context.Context) error {
|
||||
args = append(args, []string{"--syncmode=full"}...)
|
||||
}
|
||||
runCmd := exec.CommandContext(ctx, binaryPath, args...) // #nosec G204 -- Safe
|
||||
file, err := helpers.DeleteAndCreateFile(e2e.TestParams.LogPath, "eth1_"+strconv.Itoa(node.index)+".log")
|
||||
file, err := os.Create(path.Join(e2e.TestParams.LogPath, "eth1_"+strconv.Itoa(node.index)+".log"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
runCmd.Stdout = file
|
||||
runCmd.Stderr = file
|
||||
log.Infof("Starting eth1 node %d with flags: %s", node.index, strings.Join(args[2:], " "))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user