mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
log any error during log file close
This commit is contained in:
parent
200f496077
commit
f65a19af15
1 changed files with 3 additions and 1 deletions
|
|
@ -241,5 +241,7 @@ func (s *supply) OnExit(depth int, output []byte, gasUsed uint64, err error, rev
|
|||
}
|
||||
|
||||
func (s *supply) OnTerminate() {
|
||||
s.loggerOutputFile.Close()
|
||||
if err := s.loggerOutputFile.Close(); err != nil {
|
||||
log.Printf("failed to close supply tracer log file: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue