diff options
Diffstat (limited to 'cmd/ethereum/flags.go')
-rw-r--r-- | cmd/ethereum/flags.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/ethereum/flags.go b/cmd/ethereum/flags.go index 79a60039c..1a0c13c82 100644 --- a/cmd/ethereum/flags.go +++ b/cmd/ethereum/flags.go @@ -137,6 +137,12 @@ func Init() { flag.Parse() + // When the javascript console is started log to a file instead + // of stdout + if StartJsConsole { + LogFile = path.Join(Datadir, "ethereum.log") + } + var err error if NAT, err = nat.Parse(*natstr); err != nil { log.Fatalf("-nat: %v", err) |