Skip to content

Commit

Permalink
Revert "drainer: Log version info before other logs, fix #242 (#638)" (
Browse files Browse the repository at this point in the history
…#645)

This reverts commit 62c5a9e.
  • Loading branch information
july2993 authored Jun 26, 2019
1 parent 6a7bdd5 commit 1513f5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/drainer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
rand.Seed(time.Now().UTC().UnixNano())

version.PrintVersionInfo("Drainer")

cfg := drainer.NewConfig()
if err := cfg.Parse(os.Args[1:]); err != nil {
log.Fatal("verifying flags failed, See 'drainer --help'.", zap.Error(err))
Expand All @@ -44,6 +42,7 @@ func main() {
if err := util.InitLogger(cfg.LogLevel, cfg.LogFile); err != nil {
log.Fatal("Failed to initialize log", zap.Error(err))
}
version.PrintVersionInfo("Drainer")
log.Info("start drainer...", zap.Reflect("config", cfg))

bs, err := drainer.NewServer(cfg)
Expand Down

0 comments on commit 1513f5d

Please sign in to comment.