{"action":"created","comment":{"url":"https://api.github.com/repos/woju/qubes-stats/pulls/comments/221230464","pull_request_review_id":159830495,"id":221230464,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTIzMDQ2NA==","diff_hunk":"@@ -44,9 +44,8 @@\n import stem.descriptor.reader\n \n LOGFILES = [\n-    '/var/log/httpd-access.log',\n-    '/var/log/httpd-access.log.0',\n-    '/var/log/httpd-access.log.1',\n+    '/var/log/nginx/access.log',\n+    '/var/log/nginx/access.log.1',","path":"qubesstats/__init__.py","position":8,"original_position":8,"commit_id":"3d4497f101ce6974c98803a408b4ed68269e3d82","original_commit_id":"fc7ac099f9554fa4c13401b2005a5580f6733efd","user":{"login":"woju","id":1550337,"node_id":"MDQ6VXNlcjE1NTAzMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1550337?v=4","gravatar_id":"","url":"https://api.github.com/users/woju","html_url":"https://github.com/woju","followers_url":"https://api.github.com/users/woju/followers","following_url":"https://api.github.com/users/woju/following{/other_user}","gists_url":"https://api.github.com/users/woju/gists{/gist_id}","starred_url":"https://api.github.com/users/woju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woju/subscriptions","organizations_url":"https://api.github.com/users/woju/orgs","repos_url":"https://api.github.com/users/woju/repos","events_url":"https://api.github.com/users/woju/events{/privacy}","received_events_url":"https://api.github.com/users/woju/received_events","type":"User","site_admin":false},"body":"Alternatively we may decompress those files (`import gzip; gzip.open(...)`). And handle missing files, so we actually don't have to hardcode if we are in BSD or in apache or in nginx. I think I'll do that instead. It will be easier to move the script again in the future.\r\n\r\nDidn't we promise people we remove old logs anyway?","created_at":"2018-09-28T12:05:20Z","updated_at":"2018-09-28T12:05:20Z","html_url":"https://github.com/woju/qubes-stats/pull/2#discussion_r221230464","pull_request_url":"https://api.github.com/repos/woju/qubes-stats/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/woju/qubes-stats/pulls/comments/221230464"},"html":{"href":"https://github.com/woju/qubes-stats/pull/2#discussion_r221230464"},"pull_request":{"href":"https://api.github.com/repos/woju/qubes-stats/pulls/2"}},"in_reply_to_id":220878968},"pull_request":{"url":"https://api.github.com/repos/woju/qubes-stats/pulls/2","id":218500054,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4NTAwMDU0","html_url":"https://github.com/woju/qubes-stats/pull/2","diff_url":"https://github.com/woju/qubes-stats/pull/2.diff","patch_url":"https://github.com/woju/qubes-stats/pull/2.patch","issue_url":"https://api.github.com/repos/woju/qubes-stats/issues/2","number":2,"state":"open","locked":false,"title":"Changes for new server","user":{"login":"marmarek","id":726704,"node_id":"MDQ6VXNlcjcyNjcwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/726704?v=4","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"body":"Log location is changed. Also take into account metalink files - in such\r\na case most likely actual repomd.xml will be downloaded from somewhere\r\nelse.\r\n\r\nOne thing not handled here is IPv6 - new server do have IPv6 address.","created_at":"2018-09-27T01:38:00Z","updated_at":"2018-09-28T12:05:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45ee4587838b355c87299d4213542e36a4dea6cf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/woju/qubes-stats/pulls/2/commits","review_comments_url":"https://api.github.com/repos/woju/qubes-stats/pulls/2/comments","review_comment_url":"https://api.github.com/repos/woju/qubes-stats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woju/qubes-stats/issues/2/comments","statuses_url":"https://api.github.com/repos/woju/qubes-stats/statuses/3d4497f101ce6974c98803a408b4ed68269e3d82","head":{"label":"marmarek:patch-1","ref":"patch-1","sha":"3d4497f101ce6974c98803a408b4ed68269e3d82","user":{"login":"marmarek","id":726704,"node_id":"MDQ6VXNlcjcyNjcwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/726704?v=4","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"repo":{"id":150511027,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA1MTEwMjc=","name":"qubes-stats","full_name":"marmarek/qubes-stats","private":false,"owner":{"login":"marmarek","id":726704,"node_id":"MDQ6VXNlcjcyNjcwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/726704?v=4","gravatar_id":"","url":"https://api.github.com/users/marmarek","html_url":"https://github.com/marmarek","followers_url":"https://api.github.com/users/marmarek/followers","following_url":"https://api.github.com/users/marmarek/following{/other_user}","gists_url":"https://api.github.com/users/marmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/marmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmarek/subscriptions","organizations_url":"https://api.github.com/users/marmarek/orgs","repos_url":"https://api.github.com/users/marmarek/repos","events_url":"https://api.github.com/users/marmarek/events{/privacy}","received_events_url":"https://api.github.com/users/marmarek/received_events","type":"User","site_admin":false},"html_url":"https://github.com/marmarek/qubes-stats","description":"Official Qubes OS statistics","fork":true,"url":"https://api.github.com/repos/marmarek/qubes-stats","forks_url":"https://api.github.com/repos/marmarek/qubes-stats/forks","keys_url":"https://api.github.com/repos/marmarek/qubes-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmarek/qubes-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmarek/qubes-stats/teams","hooks_url":"https://api.github.com/repos/marmarek/qubes-stats/hooks","issue_events_url":"https://api.github.com/repos/marmarek/qubes-stats/issues/events{/number}","events_url":"https://api.github.com/repos/marmarek/qubes-stats/events","assignees_url":"https://api.github.com/repos/marmarek/qubes-stats/assignees{/user}","branches_url":"https://api.github.com/repos/marmarek/qubes-stats/branches{/branch}","tags_url":"https://api.github.com/repos/marmarek/qubes-stats/tags","blobs_url":"https://api.github.com/repos/marmarek/qubes-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmarek/qubes-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmarek/qubes-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmarek/qubes-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmarek/qubes-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/marmarek/qubes-stats/languages","stargazers_url":"https://api.github.com/repos/marmarek/qubes-stats/stargazers","contributors_url":"https://api.github.com/repos/marmarek/qubes-stats/contributors","subscribers_url":"https://api.github.com/repos/marmarek/qubes-stats/subscribers","subscription_url":"https://api.github.com/repos/marmarek/qubes-stats/subscription","commits_url":"https://api.github.com/repos/marmarek/qubes-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmarek/qubes-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmarek/qubes-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmarek/qubes-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmarek/qubes-stats/contents/{+path}","compare_url":"https://api.github.com/repos/marmarek/qubes-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmarek/qubes-stats/merges","archive_url":"https://api.github.com/repos/marmarek/qubes-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmarek/qubes-stats/downloads","issues_url":"https://api.github.com/repos/marmarek/qubes-stats/issues{/number}","pulls_url":"https://api.github.com/repos/marmarek/qubes-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/marmarek/qubes-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/marmarek/qubes-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmarek/qubes-stats/labels{/name}","releases_url":"https://api.github.com/repos/marmarek/qubes-stats/releases{/id}","deployments_url":"https://api.github.com/repos/marmarek/qubes-stats/deployments","created_at":"2018-09-27T01:28:45Z","updated_at":"2018-09-27T01:28:47Z","pushed_at":"2018-09-28T09:32:35Z","git_url":"git://github.com/marmarek/qubes-stats.git","ssh_url":"git@github.com:marmarek/qubes-stats.git","clone_url":"https://github.com/marmarek/qubes-stats.git","svn_url":"https://github.com/marmarek/qubes-stats","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"woju:master","ref":"master","sha":"69b57e4e5d10a7cba080ee07578e7e6b3025b0a0","user":{"login":"woju","id":1550337,"node_id":"MDQ6VXNlcjE1NTAzMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1550337?v=4","gravatar_id":"","url":"https://api.github.com/users/woju","html_url":"https://github.com/woju","followers_url":"https://api.github.com/users/woju/followers","following_url":"https://api.github.com/users/woju/following{/other_user}","gists_url":"https://api.github.com/users/woju/gists{/gist_id}","starred_url":"https://api.github.com/users/woju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woju/subscriptions","organizations_url":"https://api.github.com/users/woju/orgs","repos_url":"https://api.github.com/users/woju/repos","events_url":"https://api.github.com/users/woju/events{/privacy}","received_events_url":"https://api.github.com/users/woju/received_events","type":"User","site_admin":false},"repo":{"id":47020970,"node_id":"MDEwOlJlcG9zaXRvcnk0NzAyMDk3MA==","name":"qubes-stats","full_name":"woju/qubes-stats","private":false,"owner":{"login":"woju","id":1550337,"node_id":"MDQ6VXNlcjE1NTAzMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1550337?v=4","gravatar_id":"","url":"https://api.github.com/users/woju","html_url":"https://github.com/woju","followers_url":"https://api.github.com/users/woju/followers","following_url":"https://api.github.com/users/woju/following{/other_user}","gists_url":"https://api.github.com/users/woju/gists{/gist_id}","starred_url":"https://api.github.com/users/woju/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woju/subscriptions","organizations_url":"https://api.github.com/users/woju/orgs","repos_url":"https://api.github.com/users/woju/repos","events_url":"https://api.github.com/users/woju/events{/privacy}","received_events_url":"https://api.github.com/users/woju/received_events","type":"User","site_admin":false},"html_url":"https://github.com/woju/qubes-stats","description":"Official Qubes OS statistics","fork":false,"url":"https://api.github.com/repos/woju/qubes-stats","forks_url":"https://api.github.com/repos/woju/qubes-stats/forks","keys_url":"https://api.github.com/repos/woju/qubes-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woju/qubes-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woju/qubes-stats/teams","hooks_url":"https://api.github.com/repos/woju/qubes-stats/hooks","issue_events_url":"https://api.github.com/repos/woju/qubes-stats/issues/events{/number}","events_url":"https://api.github.com/repos/woju/qubes-stats/events","assignees_url":"https://api.github.com/repos/woju/qubes-stats/assignees{/user}","branches_url":"https://api.github.com/repos/woju/qubes-stats/branches{/branch}","tags_url":"https://api.github.com/repos/woju/qubes-stats/tags","blobs_url":"https://api.github.com/repos/woju/qubes-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woju/qubes-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woju/qubes-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/woju/qubes-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woju/qubes-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/woju/qubes-stats/languages","stargazers_url":"https://api.github.com/repos/woju/qubes-stats/stargazers","contributors_url":"https://api.github.com/repos/woju/qubes-stats/contributors","subscribers_url":"https://api.github.com/repos/woju/qubes-stats/subscribers","subscription_url":"https://api.github.com/repos/woju/qubes-stats/subscription","commits_url":"https://api.github.com/repos/woju/qubes-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/woju/qubes-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/woju/qubes-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/woju/qubes-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/woju/qubes-stats/contents/{+path}","compare_url":"https://api.github.com/repos/woju/qubes-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woju/qubes-stats/merges","archive_url":"https://api.github.com/repos/woju/qubes-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woju/qubes-stats/downloads","issues_url":"https://api.github.com/repos/woju/qubes-stats/issues{/number}","pulls_url":"https://api.github.com/repos/woju/qubes-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/woju/qubes-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/woju/qubes-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woju/qubes-stats/labels{/name}","releases_url":"https://api.github.com/repos/woju/qubes-stats/releases{/id}","deployments_url":"https://api.github.com/repos/woju/qubes-stats/deployments","created_at":"2015-11-28T11:34:28Z","updated_at":"2018-09-27T15:47:05Z","pushed_at":"2018-09-28T09:32:36Z","git_url":"git://github.com/woju/qubes-stats.git","ssh_url":"git@github.com:woju/qubes-stats.git","clone_url":"https://github.com/woju/qubes-stats.git","svn_url":"https://github.com/woju/qubes-stats","homepage":null,"size":39,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woju/qubes-stats/pulls/2"},"html":{"href":"https://github.com/woju/qubes-stats/pull/2"},"issue":{"href":"https://api.github.com/repos/woju/qubes-stats/issues/2"},"comments":{"href":"https://api.github.com/repos/woju/qubes-stats/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/woju/qubes-stats/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/woju/qubes-stats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woju/qubes-stats/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/woju/qubes-stats/statuses/3d4497f101ce6974c98803a408b4ed68269e3d82"}},"author_association":"NONE"}}
{"actor":{"display_login":"woju"}}