From caccbb1b715adffac8bce105d4d9828a9efa58da Mon Sep 17 00:00:00 2001 From: Jason Coene Date: Sat, 8 Mar 2014 09:40:47 -0600 Subject: [PATCH] Release 0.1.3 --- Makefile | 2 +- main.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f39f887..c5efba1 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=0.1.2 +VERSION=0.1.3 default: fmt run diff --git a/main.go b/main.go index ac22d9a..6d277d6 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,8 @@ import ( "time" ) +const VERSION = "0.1.3" + type Packet struct { Bucket string Value string @@ -38,6 +40,7 @@ var ( flushInterval = flag.Int64("flush", 60, "interval at which data is sent to librato (in seconds)") percentiles = flag.String("percentiles", "", "comma separated list of percentiles to calculate for timers (eg. \"95,99.5\")") debug = flag.Bool("debug", false, "enable logging of inputs and submissions") + version = flag.Bool("version", false, "print version and exit") ) var ( @@ -300,6 +303,11 @@ func listen() { func main() { flag.Parse() + if *version { + fmt.Printf("statsd-librato v%s\n", VERSION) + return + } + if *debug { log = logger.NewLogger(logger.LOG_LEVEL_DEBUG, "statsd") } else {