aboutsummaryrefslogtreecommitdiffstats
path: root/logger/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'logger/log.go')
-rw-r--r--logger/log.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/logger/log.go b/logger/log.go
index baa3dfaf2..2dbec86de 100644
--- a/logger/log.go
+++ b/logger/log.go
@@ -6,11 +6,11 @@ import (
"log"
"os"
- "github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/common"
)
func openLogFile(datadir string, filename string) *os.File {
- path := ethutil.AbsolutePath(datadir, filename)
+ path := common.AbsolutePath(datadir, filename)
file, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666)
if err != nil {
panic(fmt.Sprintf("error opening log file '%s': %v", filename, err))