mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
t5
This commit is contained in:
parent
38e84c303a
commit
a8982f9ec4
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ type TimingLog struct {
|
|||
}
|
||||
|
||||
func InitOutputFile(outputFile string) {
|
||||
if outputFile == "" {
|
||||
log.Fatalln("You must specify the log file, e.g. \"geth --timing.output=/path/to/file.txt\"")
|
||||
}
|
||||
var err error
|
||||
file, err = os.OpenFile(outputFile, os.O_APPEND|os.O_CREATE, 0644)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue