Skip to content

Commit

Permalink
update logger in main/client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Jxck committed Jan 8, 2014
1 parent e8ce42a commit 1d23c33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/client.go
Expand Up @@ -12,7 +12,7 @@ import (
"os"
)

var nullout, upgrade, flowctl, verbose bool
var nullout, upgrade, flowctl bool
var post string
var loglevel int

Expand All @@ -22,15 +22,13 @@ func init() {
f.BoolVar(&nullout, "n", false, "null output")
f.BoolVar(&upgrade, "u", false, "upgrade")
f.BoolVar(&flowctl, "f", false, "flow control")
f.BoolVar(&verbose, "v", false, "verbose out")
f.StringVar(&post, "d", "", "send post data")
f.IntVar(&loglevel, "l", 0, "log level (1 ERR, 2 WARNING, 3 INFO, 4 DEBUG)")
f.Parse(os.Args[1:])
for 0 < f.NArg() {
f.Parse(f.Args()[1:])
}
logger.LogLevel(loglevel)
logger.Verbose(verbose)
}

func main() {
Expand Down

0 comments on commit 1d23c33

Please sign in to comment.