{"action":"created","comment":{"url":"https://api.github.com/repos/gliderlabs/logspout/pulls/comments/60339243","id":60339243,"diff_hunk":"@@ -89,6 +89,15 @@ func (p *LogsPump) Setup() error {\n \treturn nil\n }\n \n+func (p *LogsPump) rename(event *docker.APIEvents) {\n+    p.mu.Lock()\n+    defer p.mu.Unlock()\n+    container, err := p.client.InspectContainer(event.ID)","path":"router/pump.go","position":7,"original_position":7,"commit_id":"95eb321c12f44e3e8d37811cbd49429a79389b04","original_commit_id":"95eb321c12f44e3e8d37811cbd49429a79389b04","user":{"login":"michaelshobbs","id":4491438,"avatar_url":"https://avatars.githubusercontent.com/u/4491438?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelshobbs","html_url":"https://github.com/michaelshobbs","followers_url":"https://api.github.com/users/michaelshobbs/followers","following_url":"https://api.github.com/users/michaelshobbs/following{/other_user}","gists_url":"https://api.github.com/users/michaelshobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelshobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelshobbs/subscriptions","organizations_url":"https://api.github.com/users/michaelshobbs/orgs","repos_url":"https://api.github.com/users/michaelshobbs/repos","events_url":"https://api.github.com/users/michaelshobbs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelshobbs/received_events","type":"User","site_admin":false},"body":"Ah I misread that then. Well if there's no compatibility issues then I'm happy to update this PR.","created_at":"2016-04-20T01:30:46Z","updated_at":"2016-04-20T01:30:46Z","html_url":"https://github.com/gliderlabs/logspout/pull/180#discussion_r60339243","pull_request_url":"https://api.github.com/repos/gliderlabs/logspout/pulls/180","_links":{"self":{"href":"https://api.github.com/repos/gliderlabs/logspout/pulls/comments/60339243"},"html":{"href":"https://github.com/gliderlabs/logspout/pull/180#discussion_r60339243"},"pull_request":{"href":"https://api.github.com/repos/gliderlabs/logspout/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/gliderlabs/logspout/pulls/180","id":66953035,"html_url":"https://github.com/gliderlabs/logspout/pull/180","diff_url":"https://github.com/gliderlabs/logspout/pull/180.diff","patch_url":"https://github.com/gliderlabs/logspout/pull/180.patch","issue_url":"https://api.github.com/repos/gliderlabs/logspout/issues/180","number":180,"state":"open","locked":false,"title":"update container name if we get a rename event. closes #144","user":{"login":"michaelshobbs","id":4491438,"avatar_url":"https://avatars.githubusercontent.com/u/4491438?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelshobbs","html_url":"https://github.com/michaelshobbs","followers_url":"https://api.github.com/users/michaelshobbs/followers","following_url":"https://api.github.com/users/michaelshobbs/following{/other_user}","gists_url":"https://api.github.com/users/michaelshobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelshobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelshobbs/subscriptions","organizations_url":"https://api.github.com/users/michaelshobbs/orgs","repos_url":"https://api.github.com/users/michaelshobbs/repos","events_url":"https://api.github.com/users/michaelshobbs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelshobbs/received_events","type":"User","site_admin":false},"body":"Uses new container name if we receive a `rename` event in the docker event stream\r\n\r\nthanks to @josegonzalez for the code here\r\ncloses #144 \r\n","created_at":"2016-04-19T02:49:30Z","updated_at":"2016-04-20T01:30:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"911d86fa822ce9eacc55ed9604caf298bac64c2f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gliderlabs/logspout/pulls/180/commits","review_comments_url":"https://api.github.com/repos/gliderlabs/logspout/pulls/180/comments","review_comment_url":"https://api.github.com/repos/gliderlabs/logspout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gliderlabs/logspout/issues/180/comments","statuses_url":"https://api.github.com/repos/gliderlabs/logspout/statuses/95eb321c12f44e3e8d37811cbd49429a79389b04","head":{"label":"michaelshobbs:144_mh-rename-container-event","ref":"144_mh-rename-container-event","sha":"95eb321c12f44e3e8d37811cbd49429a79389b04","user":{"login":"michaelshobbs","id":4491438,"avatar_url":"https://avatars.githubusercontent.com/u/4491438?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelshobbs","html_url":"https://github.com/michaelshobbs","followers_url":"https://api.github.com/users/michaelshobbs/followers","following_url":"https://api.github.com/users/michaelshobbs/following{/other_user}","gists_url":"https://api.github.com/users/michaelshobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelshobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelshobbs/subscriptions","organizations_url":"https://api.github.com/users/michaelshobbs/orgs","repos_url":"https://api.github.com/users/michaelshobbs/repos","events_url":"https://api.github.com/users/michaelshobbs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelshobbs/received_events","type":"User","site_admin":false},"repo":{"id":53069090,"name":"logspout","full_name":"michaelshobbs/logspout","owner":{"login":"michaelshobbs","id":4491438,"avatar_url":"https://avatars.githubusercontent.com/u/4491438?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelshobbs","html_url":"https://github.com/michaelshobbs","followers_url":"https://api.github.com/users/michaelshobbs/followers","following_url":"https://api.github.com/users/michaelshobbs/following{/other_user}","gists_url":"https://api.github.com/users/michaelshobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelshobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelshobbs/subscriptions","organizations_url":"https://api.github.com/users/michaelshobbs/orgs","repos_url":"https://api.github.com/users/michaelshobbs/repos","events_url":"https://api.github.com/users/michaelshobbs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelshobbs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelshobbs/logspout","description":"Log routing for Docker container logs","fork":true,"url":"https://api.github.com/repos/michaelshobbs/logspout","forks_url":"https://api.github.com/repos/michaelshobbs/logspout/forks","keys_url":"https://api.github.com/repos/michaelshobbs/logspout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelshobbs/logspout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelshobbs/logspout/teams","hooks_url":"https://api.github.com/repos/michaelshobbs/logspout/hooks","issue_events_url":"https://api.github.com/repos/michaelshobbs/logspout/issues/events{/number}","events_url":"https://api.github.com/repos/michaelshobbs/logspout/events","assignees_url":"https://api.github.com/repos/michaelshobbs/logspout/assignees{/user}","branches_url":"https://api.github.com/repos/michaelshobbs/logspout/branches{/branch}","tags_url":"https://api.github.com/repos/michaelshobbs/logspout/tags","blobs_url":"https://api.github.com/repos/michaelshobbs/logspout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelshobbs/logspout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelshobbs/logspout/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelshobbs/logspout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelshobbs/logspout/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelshobbs/logspout/languages","stargazers_url":"https://api.github.com/repos/michaelshobbs/logspout/stargazers","contributors_url":"https://api.github.com/repos/michaelshobbs/logspout/contributors","subscribers_url":"https://api.github.com/repos/michaelshobbs/logspout/subscribers","subscription_url":"https://api.github.com/repos/michaelshobbs/logspout/subscription","commits_url":"https://api.github.com/repos/michaelshobbs/logspout/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelshobbs/logspout/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelshobbs/logspout/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelshobbs/logspout/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelshobbs/logspout/contents/{+path}","compare_url":"https://api.github.com/repos/michaelshobbs/logspout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelshobbs/logspout/merges","archive_url":"https://api.github.com/repos/michaelshobbs/logspout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelshobbs/logspout/downloads","issues_url":"https://api.github.com/repos/michaelshobbs/logspout/issues{/number}","pulls_url":"https://api.github.com/repos/michaelshobbs/logspout/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelshobbs/logspout/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelshobbs/logspout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelshobbs/logspout/labels{/name}","releases_url":"https://api.github.com/repos/michaelshobbs/logspout/releases{/id}","deployments_url":"https://api.github.com/repos/michaelshobbs/logspout/deployments","created_at":"2016-03-03T17:21:02Z","updated_at":"2016-03-03T17:21:02Z","pushed_at":"2016-04-19T02:49:28Z","git_url":"git://github.com/michaelshobbs/logspout.git","ssh_url":"git@github.com:michaelshobbs/logspout.git","clone_url":"https://github.com/michaelshobbs/logspout.git","svn_url":"https://github.com/michaelshobbs/logspout","homepage":"","size":5545,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gliderlabs:master","ref":"master","sha":"95fdf26b9d3aaf5030f894ce6caf4f5abb6e660d","user":{"login":"gliderlabs","id":8484931,"avatar_url":"https://avatars.githubusercontent.com/u/8484931?v=3","gravatar_id":"","url":"https://api.github.com/users/gliderlabs","html_url":"https://github.com/gliderlabs","followers_url":"https://api.github.com/users/gliderlabs/followers","following_url":"https://api.github.com/users/gliderlabs/following{/other_user}","gists_url":"https://api.github.com/users/gliderlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/gliderlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliderlabs/subscriptions","organizations_url":"https://api.github.com/users/gliderlabs/orgs","repos_url":"https://api.github.com/users/gliderlabs/repos","events_url":"https://api.github.com/users/gliderlabs/events{/privacy}","received_events_url":"https://api.github.com/users/gliderlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":19748680,"name":"logspout","full_name":"gliderlabs/logspout","owner":{"login":"gliderlabs","id":8484931,"avatar_url":"https://avatars.githubusercontent.com/u/8484931?v=3","gravatar_id":"","url":"https://api.github.com/users/gliderlabs","html_url":"https://github.com/gliderlabs","followers_url":"https://api.github.com/users/gliderlabs/followers","following_url":"https://api.github.com/users/gliderlabs/following{/other_user}","gists_url":"https://api.github.com/users/gliderlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/gliderlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gliderlabs/subscriptions","organizations_url":"https://api.github.com/users/gliderlabs/orgs","repos_url":"https://api.github.com/users/gliderlabs/repos","events_url":"https://api.github.com/users/gliderlabs/events{/privacy}","received_events_url":"https://api.github.com/users/gliderlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gliderlabs/logspout","description":"Log routing for Docker container logs","fork":false,"url":"https://api.github.com/repos/gliderlabs/logspout","forks_url":"https://api.github.com/repos/gliderlabs/logspout/forks","keys_url":"https://api.github.com/repos/gliderlabs/logspout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gliderlabs/logspout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gliderlabs/logspout/teams","hooks_url":"https://api.github.com/repos/gliderlabs/logspout/hooks","issue_events_url":"https://api.github.com/repos/gliderlabs/logspout/issues/events{/number}","events_url":"https://api.github.com/repos/gliderlabs/logspout/events","assignees_url":"https://api.github.com/repos/gliderlabs/logspout/assignees{/user}","branches_url":"https://api.github.com/repos/gliderlabs/logspout/branches{/branch}","tags_url":"https://api.github.com/repos/gliderlabs/logspout/tags","blobs_url":"https://api.github.com/repos/gliderlabs/logspout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gliderlabs/logspout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gliderlabs/logspout/git/refs{/sha}","trees_url":"https://api.github.com/repos/gliderlabs/logspout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gliderlabs/logspout/statuses/{sha}","languages_url":"https://api.github.com/repos/gliderlabs/logspout/languages","stargazers_url":"https://api.github.com/repos/gliderlabs/logspout/stargazers","contributors_url":"https://api.github.com/repos/gliderlabs/logspout/contributors","subscribers_url":"https://api.github.com/repos/gliderlabs/logspout/subscribers","subscription_url":"https://api.github.com/repos/gliderlabs/logspout/subscription","commits_url":"https://api.github.com/repos/gliderlabs/logspout/commits{/sha}","git_commits_url":"https://api.github.com/repos/gliderlabs/logspout/git/commits{/sha}","comments_url":"https://api.github.com/repos/gliderlabs/logspout/comments{/number}","issue_comment_url":"https://api.github.com/repos/gliderlabs/logspout/issues/comments{/number}","contents_url":"https://api.github.com/repos/gliderlabs/logspout/contents/{+path}","compare_url":"https://api.github.com/repos/gliderlabs/logspout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gliderlabs/logspout/merges","archive_url":"https://api.github.com/repos/gliderlabs/logspout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gliderlabs/logspout/downloads","issues_url":"https://api.github.com/repos/gliderlabs/logspout/issues{/number}","pulls_url":"https://api.github.com/repos/gliderlabs/logspout/pulls{/number}","milestones_url":"https://api.github.com/repos/gliderlabs/logspout/milestones{/number}","notifications_url":"https://api.github.com/repos/gliderlabs/logspout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gliderlabs/logspout/labels{/name}","releases_url":"https://api.github.com/repos/gliderlabs/logspout/releases{/id}","deployments_url":"https://api.github.com/repos/gliderlabs/logspout/deployments","created_at":"2014-05-13T17:26:30Z","updated_at":"2016-04-19T23:38:45Z","pushed_at":"2016-04-19T02:49:32Z","git_url":"git://github.com/gliderlabs/logspout.git","ssh_url":"git@github.com:gliderlabs/logspout.git","clone_url":"https://github.com/gliderlabs/logspout.git","svn_url":"https://github.com/gliderlabs/logspout","homepage":"","size":8391,"stargazers_count":1777,"watchers_count":1777,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":240,"mirror_url":null,"open_issues_count":70,"forks":240,"open_issues":70,"watchers":1777,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gliderlabs/logspout/pulls/180"},"html":{"href":"https://github.com/gliderlabs/logspout/pull/180"},"issue":{"href":"https://api.github.com/repos/gliderlabs/logspout/issues/180"},"comments":{"href":"https://api.github.com/repos/gliderlabs/logspout/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/gliderlabs/logspout/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/gliderlabs/logspout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gliderlabs/logspout/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/gliderlabs/logspout/statuses/95eb321c12f44e3e8d37811cbd49429a79389b04"}}}}