Browse Source

daemon: refactor out of cmd into own package

pull/32/head
Ethan Buchman 10 years ago
committed by Jae Kwon
parent
commit
983b7f48e8
3 changed files with 11 additions and 3 deletions
  1. +2
    -1
      cmd/main.go
  2. +2
    -2
      daemon/daemon.go
  3. +7
    -0
      daemon/log.go

+ 2
- 1
cmd/main.go View File

@ -5,6 +5,7 @@ import (
"os"
"github.com/tendermint/tendermint/config"
"github.com/tendermint/tendermint/daemon"
)
func main() {
@ -26,7 +27,7 @@ Commands:
switch args[0] {
case "daemon":
config.ParseFlags(args[1:])
daemon()
daemon.Daemon()
case "gen_account":
gen_account()
case "gen_validator":


cmd/daemon.go → daemon/daemon.go View File


+ 7
- 0
daemon/log.go View File

@ -0,0 +1,7 @@
package daemon
import (
"github.com/tendermint/tendermint/logger"
)
var log = logger.New("module", "daemon")

Loading…
Cancel
Save