Minor tidy ups.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
pull/8/head
Tom Wilkie 8 years ago
parent d3579bbeef
commit 0443ee7f9e
  1. 2
      cmd/logcli/main.go
  2. 2
      pkg/ingester/chunk.go
  3. 1
      pkg/ingester/instance.go

@ -54,7 +54,7 @@ func main() {
directionStr = "forward"
}
url := fmt.Sprintf("%s?query=%s&limit=%d&start=%d&end=%d&direction=%s&regexp=%s",
addr, url.QueryEscape(query), *limit, start.Unix(), end.Unix(), directionStr, regexp)
addr, url.QueryEscape(query), *limit, start.Unix(), end.Unix(), directionStr, url.QueryEscape(regexp))
fmt.Println(url)
req, err := http.NewRequest("GET", url, nil)

@ -73,7 +73,7 @@ func (c *dumbChunk) Iterator(from, through time.Time, direction logproto.Directi
j := sort.Search(len(c.entries), func(j int) bool {
return !through.After(c.entries[j].Timestamp)
})
log.Println("from", from, "through", through, "i", i, "j", j, "entried", len(c.entries))
log.Println("from", from, "through", through, "i", i, "j", j, "entries", len(c.entries))
start := -1
if direction == logproto.BACKWARD {

@ -58,6 +58,7 @@ func (i *instance) Push(ctx context.Context, req *logproto.PushRequest) error {
}
func (i *instance) Query(req *logproto.QueryRequest, queryServer logproto.Querier_QueryServer) error {
log.Println(req)
matchers, err := parser.Matchers(req.Query)
if err != nil {
return err

Loading…
Cancel
Save