From 4c29b300f6e6ab1ff7be246801d425edecbdc62c Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sat, 12 Jul 2014 17:39:00 +0700 Subject: [PATCH] Configure Rollbar from flags --- config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.go b/config.go index 6ce662b..70bfb51 100644 --- a/config.go +++ b/config.go @@ -10,6 +10,7 @@ type ( Storage string Env string Port int + Rollbar string } ) @@ -21,6 +22,7 @@ func SetupConfig() { cfg.Storage = *flag.String("storage", "-", "Kyoto Cabinet storage path (e.g. storage.kch#zcomp=gz#capsiz=524288000)") cfg.Env = *flag.String("environment", "development", "Process environment: development or production") cfg.Port = *flag.Int("port", 4401, "HTTP port to listen") + cfg.Rollbar = *flag.String("rollbar", "", "Rollbar token") flag.Parse() }