use nicer timestamps
This commit is contained in:
parent
ccf64a8534
commit
18f7b9bb1d
@ -99,7 +99,7 @@ func (fsj *fsJournal) rollJournalFile() error {
|
|||||||
fsj.fi.Close()
|
fsj.fi.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
nfi, err := os.Create(filepath.Join(fsj.journalDir, fmt.Sprintf("lotus-journal-%d.ndjson", time.Now().Unix())))
|
nfi, err := os.Create(filepath.Join(fsj.journalDir, fmt.Sprintf("lotus-journal-%s.ndjson", time.Now().Format(time.RFC3339))))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("failed to open journal file: %w", err)
|
return xerrors.Errorf("failed to open journal file: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user