From b1311b3118e8601f5be784ad573e24f586457d70 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Wed, 2 Jul 2014 00:45:17 -0400 Subject: [PATCH] log flags/gomaxprocs --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index f28d989..a73ee27 100644 --- a/main.go +++ b/main.go @@ -30,9 +30,11 @@ func init() { func main() { flag.Parse() - runtime.GOMAXPROCS(runtime.NumCPU()) + glog.Info("parsed flags") + + runtime.GOMAXPROCS(runtime.NumCPU()) + glog.Info("set gomaxprocs to ", runtime.NumCPU()) - // Enable the profile if flagged. if profile { f, err := os.Create("chihaya.cpu") if err != nil { @@ -49,7 +51,6 @@ func main() { }() } - // Load the config file. cfg, err := config.Open(configPath) if err != nil { glog.Fatalf("failed to parse configuration file: %s\n", err) @@ -60,7 +61,6 @@ func main() { glog.Infof("loaded config file: %s", configPath) } - // Start the server listening and handling requests. http.Serve(cfg) glog.Info("gracefully shutdown") }