Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix log receiver tests

  • Loading branch information...
commit aefc36c98aea905292a8af957e5c62b943fc69cf 1 parent 7e403b8
♠ ace hacker authored
Showing with 6 additions and 6 deletions.
  1. +1 −1  readme.md
  2. +5 −5 receiver/receiver_test.go
View
2  readme.md
@@ -224,7 +224,7 @@ Before working on a new feature, send your proposal to the [mailing list](https:
```bash
$ go version
-go version devel +d58997478ec6 Mon Apr 08 00:09:35 2013 -0700 darwin/amd64
+go version go1.1rc2 darwin/amd64
```
```bash
View
10 receiver/receiver_test.go
@@ -82,16 +82,16 @@ func testBucket(name, source, user, pass string, res time.Duration, vals []float
return &bucket.Bucket{Id: id, Vals: vals}
}
-func fmtLog(t time.Time, procid, msg string) []byte {
+func fmtLog(t time.Time, appname, msg string) []byte {
prival := 190 //local7/info
version := 1
timestamp := t.Format("2006-01-02T15:04:05+00:00")
hostname := "hostname"
- appname := "l2met"
- msgid := "- -"
+ msgid := "-"
+ procid := "-"
layout := "<%d>%d %s %s %s %s %s %s"
- packet := fmt.Sprintf(layout, prival, version, timestamp, hostname, appname, procid,
- msgid, msg)
+ packet := fmt.Sprintf(layout,
+ prival, version, timestamp, hostname, appname, procid, msgid, msg)
result := fmt.Sprintf("%d %s", len(packet), packet)
return []byte(result)
}
Please sign in to comment.
Something went wrong with that request. Please try again.