aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-22 22:58:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-23 18:16:46 +0800
commit23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2 (patch)
tree143cd04a9fe002b25c146e7c0b5aacfbe62092eb /cmd/utils
parent61e6bb12478740d614c8effd330f881f962b7b84 (diff)
downloadgo-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.tar
go-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.tar.gz
go-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.tar.bz2
go-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.tar.lz
go-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.tar.xz
go-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.tar.zst
go-tangerine-23a5d64fd059bb8bdf02781608a15b8b1bdbdfd2.zip
accounts, cmd: port packages over to the new logging system
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/cmd.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index e288f8bd2..5baa44980 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -40,15 +40,6 @@ const (
importBatchSize = 2500
)
-func openLogFile(Datadir string, filename string) *os.File {
- 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))
- }
- return file
-}
-
// Fatalf formats a message to standard error and exits the program.
// The message is also printed to standard output if standard error
// is redirected to a different file.