Skip to content

Commit 3ee21b2

Browse files
committed
change output directory for CSV file and log files
1 parent a815561 commit 3ee21b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

export.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
func exportAsCSV(jobs chan *work.Job) {
1515

1616
now := time.Now().Format("2006-01-02-15-04-05")
17-
f, err := os.Create(fmt.Sprintf("geth_tx_export_%s.csv", now))
17+
f, err := os.Create(fmt.Sprintf("/output/geth_tx_export_%s.csv", now))
1818
if err != nil {
1919
log.Fatal("failed to open output file", "err", err.Error())
2020
}
@@ -47,7 +47,7 @@ func exportAsCSV(jobs chan *work.Job) {
4747

4848
func exportFailedBlockJobs(jobs chan *work.Job) {
4949

50-
f, err := os.Create("failedBlocks.txt")
50+
f, err := os.Create("/output/failedBlocks.txt")
5151
if err != nil {
5252
log.Fatal("failed to create block error file", "err", err.Error())
5353
}
@@ -65,7 +65,7 @@ func exportFailedBlockJobs(jobs chan *work.Job) {
6565

6666
func exportFailedTxJobs(jobs chan *work.Job) {
6767

68-
f, err := os.Create("failedTransactions.txt")
68+
f, err := os.Create("/output/failedTransactions.txt")
6969
if err != nil {
7070
log.Fatal("failed to create transaction error file", "err", err.Error())
7171
}

0 commit comments

Comments
 (0)