Skip to content

Commit

Permalink
Release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoene committed Mar 8, 2014
1 parent b214772 commit caccbb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.1.2
VERSION=0.1.3

default: fmt run

Expand Down
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (
"time"
)

const VERSION = "0.1.3"

type Packet struct {
Bucket string
Value string
Expand All @@ -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 (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit caccbb1

Please sign in to comment.