{"action":"closed","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/2120","labels_url":"https://api.github.com/repos/flynn/flynn/issues/2120/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/2120/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/2120/events","html_url":"https://github.com/flynn/flynn/issues/2120","id":116386408,"number":2120,"title":"logaggregator: Full backlog is returned when lines=0","user":{"login":"jvatic","id":171040,"avatar_url":"https://avatars.githubusercontent.com/u/171040?v=3","gravatar_id":"","url":"https://api.github.com/users/jvatic","html_url":"https://github.com/jvatic","followers_url":"https://api.github.com/users/jvatic/followers","following_url":"https://api.github.com/users/jvatic/following{/other_user}","gists_url":"https://api.github.com/users/jvatic/gists{/gist_id}","starred_url":"https://api.github.com/users/jvatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvatic/subscriptions","organizations_url":"https://api.github.com/users/jvatic/orgs","repos_url":"https://api.github.com/users/jvatic/repos","events_url":"https://api.github.com/users/jvatic/events{/privacy}","received_events_url":"https://api.github.com/users/jvatic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flynn/flynn/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/flynn/flynn/labels/easy","name":"easy","color":"009800"},{"url":"https://api.github.com/repos/flynn/flynn/labels/logaggregator","name":"logaggregator","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-11T17:48:30Z","updated_at":"2015-11-17T14:59:45Z","closed_at":"2015-11-17T14:59:45Z","body":"Full backlog is returned when `lines=0`. The reason being `backlog` is being set [here](https://github.com/flynn/flynn/blob/master/logaggregator/api.go#L69) without checking that `lines > 0`."}}