{"action":"created","comment":{"url":"https://api.github.com/repos/SFTtech/openage/pulls/comments/37433097","id":37433097,"diff_hunk":"@@ -113,6 +119,10 @@ void Console::interpret(const std::string &command) {\n \tif (command == \"exit\") {\n \t\tthis->set_visible(false);\n \t}\n+\telse if (command == \"log-tail\") {\n+\t\tfor (auto it = tailsink->tail.begin(); it != tailsink->tail.end(); it++)\n+\t\t\tthis->buf.write((*it).c_str());","path":"libopenage/console/console.cpp","position":37,"original_position":37,"commit_id":"0d9b66645447b8a5d71dbe1a90529a248d6ae255","original_commit_id":"0d9b66645447b8a5d71dbe1a90529a248d6ae255","user":{"login":"TheJJ","id":673543,"avatar_url":"https://avatars.githubusercontent.com/u/673543?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJJ","html_url":"https://github.com/TheJJ","followers_url":"https://api.github.com/users/TheJJ/followers","following_url":"https://api.github.com/users/TheJJ/following{/other_user}","gists_url":"https://api.github.com/users/TheJJ/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJJ/subscriptions","organizations_url":"https://api.github.com/users/TheJJ/orgs","repos_url":"https://api.github.com/users/TheJJ/repos","events_url":"https://api.github.com/users/TheJJ/events{/privacy}","received_events_url":"https://api.github.com/users/TheJJ/received_events","type":"User","site_admin":false},"body":"braces here as well pls, and you can use `auto &it : this->tailsink`. and `it->c_str()`.","created_at":"2015-08-19T16:07:43Z","updated_at":"2015-08-19T16:07:43Z","html_url":"https://github.com/SFTtech/openage/pull/351#discussion_r37433097","pull_request_url":"https://api.github.com/repos/SFTtech/openage/pulls/351","_links":{"self":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/comments/37433097"},"html":{"href":"https://github.com/SFTtech/openage/pull/351#discussion_r37433097"},"pull_request":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/351"}}},"pull_request":{"url":"https://api.github.com/repos/SFTtech/openage/pulls/351","id":42533472,"html_url":"https://github.com/SFTtech/openage/pull/351","diff_url":"https://github.com/SFTtech/openage/pull/351.diff","patch_url":"https://github.com/SFTtech/openage/pull/351.patch","issue_url":"https://api.github.com/repos/SFTtech/openage/issues/351","number":351,"state":"open","locked":false,"title":"'log-tail' in-game console command","user":{"login":"tomolt","id":6959624,"avatar_url":"https://avatars.githubusercontent.com/u/6959624?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolt","html_url":"https://github.com/tomolt","followers_url":"https://api.github.com/users/tomolt/followers","following_url":"https://api.github.com/users/tomolt/following{/other_user}","gists_url":"https://api.github.com/users/tomolt/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolt/subscriptions","organizations_url":"https://api.github.com/users/tomolt/orgs","repos_url":"https://api.github.com/users/tomolt/repos","events_url":"https://api.github.com/users/tomolt/events{/privacy}","received_events_url":"https://api.github.com/users/tomolt/received_events","type":"User","site_admin":false},"body":"It's an in-game console command that shows you the 8 latest log messages.\r\nBTW, The log sink I created for this (TailSink) doesn't store any older messages than these 8 since openage's logs get big really fast and it would just litter the user's RAM.\r\n\r\nP.S.:I've reuploaded this pull request because I accidentally pushed my master branch in the first request. Sorry!","created_at":"2015-08-16T09:11:50Z","updated_at":"2015-08-19T16:07:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b4374adf8eace9d61d823fd6e61eee9bd11166d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SFTtech/openage/pulls/351/commits","review_comments_url":"https://api.github.com/repos/SFTtech/openage/pulls/351/comments","review_comment_url":"https://api.github.com/repos/SFTtech/openage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SFTtech/openage/issues/351/comments","statuses_url":"https://api.github.com/repos/SFTtech/openage/statuses/0d9b66645447b8a5d71dbe1a90529a248d6ae255","head":{"label":"tomolt:console-log-tail","ref":"console-log-tail","sha":"0d9b66645447b8a5d71dbe1a90529a248d6ae255","user":{"login":"tomolt","id":6959624,"avatar_url":"https://avatars.githubusercontent.com/u/6959624?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolt","html_url":"https://github.com/tomolt","followers_url":"https://api.github.com/users/tomolt/followers","following_url":"https://api.github.com/users/tomolt/following{/other_user}","gists_url":"https://api.github.com/users/tomolt/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolt/subscriptions","organizations_url":"https://api.github.com/users/tomolt/orgs","repos_url":"https://api.github.com/users/tomolt/repos","events_url":"https://api.github.com/users/tomolt/events{/privacy}","received_events_url":"https://api.github.com/users/tomolt/received_events","type":"User","site_admin":false},"repo":{"id":40769605,"name":"openage","full_name":"tomolt/openage","owner":{"login":"tomolt","id":6959624,"avatar_url":"https://avatars.githubusercontent.com/u/6959624?v=3","gravatar_id":"","url":"https://api.github.com/users/tomolt","html_url":"https://github.com/tomolt","followers_url":"https://api.github.com/users/tomolt/followers","following_url":"https://api.github.com/users/tomolt/following{/other_user}","gists_url":"https://api.github.com/users/tomolt/gists{/gist_id}","starred_url":"https://api.github.com/users/tomolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomolt/subscriptions","organizations_url":"https://api.github.com/users/tomolt/orgs","repos_url":"https://api.github.com/users/tomolt/repos","events_url":"https://api.github.com/users/tomolt/events{/privacy}","received_events_url":"https://api.github.com/users/tomolt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomolt/openage","description":"Free (as in freedom) open source clone of the Age of Empires II engine.","fork":true,"url":"https://api.github.com/repos/tomolt/openage","forks_url":"https://api.github.com/repos/tomolt/openage/forks","keys_url":"https://api.github.com/repos/tomolt/openage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomolt/openage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomolt/openage/teams","hooks_url":"https://api.github.com/repos/tomolt/openage/hooks","issue_events_url":"https://api.github.com/repos/tomolt/openage/issues/events{/number}","events_url":"https://api.github.com/repos/tomolt/openage/events","assignees_url":"https://api.github.com/repos/tomolt/openage/assignees{/user}","branches_url":"https://api.github.com/repos/tomolt/openage/branches{/branch}","tags_url":"https://api.github.com/repos/tomolt/openage/tags","blobs_url":"https://api.github.com/repos/tomolt/openage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomolt/openage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomolt/openage/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomolt/openage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomolt/openage/statuses/{sha}","languages_url":"https://api.github.com/repos/tomolt/openage/languages","stargazers_url":"https://api.github.com/repos/tomolt/openage/stargazers","contributors_url":"https://api.github.com/repos/tomolt/openage/contributors","subscribers_url":"https://api.github.com/repos/tomolt/openage/subscribers","subscription_url":"https://api.github.com/repos/tomolt/openage/subscription","commits_url":"https://api.github.com/repos/tomolt/openage/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomolt/openage/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomolt/openage/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomolt/openage/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomolt/openage/contents/{+path}","compare_url":"https://api.github.com/repos/tomolt/openage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomolt/openage/merges","archive_url":"https://api.github.com/repos/tomolt/openage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomolt/openage/downloads","issues_url":"https://api.github.com/repos/tomolt/openage/issues{/number}","pulls_url":"https://api.github.com/repos/tomolt/openage/pulls{/number}","milestones_url":"https://api.github.com/repos/tomolt/openage/milestones{/number}","notifications_url":"https://api.github.com/repos/tomolt/openage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomolt/openage/labels{/name}","releases_url":"https://api.github.com/repos/tomolt/openage/releases{/id}","created_at":"2015-08-15T16:04:45Z","updated_at":"2015-08-15T16:04:46Z","pushed_at":"2015-08-17T14:37:41Z","git_url":"git://github.com/tomolt/openage.git","ssh_url":"git@github.com:tomolt/openage.git","clone_url":"https://github.com/tomolt/openage.git","svn_url":"https://github.com/tomolt/openage","homepage":"http://openage.sft.mx","size":5199,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"SFTtech:master","ref":"master","sha":"f4199f4738e6e039fff16837c7afc44519d65736","user":{"login":"SFTtech","id":1783325,"avatar_url":"https://avatars.githubusercontent.com/u/1783325?v=3","gravatar_id":"","url":"https://api.github.com/users/SFTtech","html_url":"https://github.com/SFTtech","followers_url":"https://api.github.com/users/SFTtech/followers","following_url":"https://api.github.com/users/SFTtech/following{/other_user}","gists_url":"https://api.github.com/users/SFTtech/gists{/gist_id}","starred_url":"https://api.github.com/users/SFTtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SFTtech/subscriptions","organizations_url":"https://api.github.com/users/SFTtech/orgs","repos_url":"https://api.github.com/users/SFTtech/repos","events_url":"https://api.github.com/users/SFTtech/events{/privacy}","received_events_url":"https://api.github.com/users/SFTtech/received_events","type":"Organization","site_admin":false},"repo":{"id":14095175,"name":"openage","full_name":"SFTtech/openage","owner":{"login":"SFTtech","id":1783325,"avatar_url":"https://avatars.githubusercontent.com/u/1783325?v=3","gravatar_id":"","url":"https://api.github.com/users/SFTtech","html_url":"https://github.com/SFTtech","followers_url":"https://api.github.com/users/SFTtech/followers","following_url":"https://api.github.com/users/SFTtech/following{/other_user}","gists_url":"https://api.github.com/users/SFTtech/gists{/gist_id}","starred_url":"https://api.github.com/users/SFTtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SFTtech/subscriptions","organizations_url":"https://api.github.com/users/SFTtech/orgs","repos_url":"https://api.github.com/users/SFTtech/repos","events_url":"https://api.github.com/users/SFTtech/events{/privacy}","received_events_url":"https://api.github.com/users/SFTtech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SFTtech/openage","description":"Free (as in freedom) open source clone of the Age of Empires II engine.","fork":false,"url":"https://api.github.com/repos/SFTtech/openage","forks_url":"https://api.github.com/repos/SFTtech/openage/forks","keys_url":"https://api.github.com/repos/SFTtech/openage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SFTtech/openage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SFTtech/openage/teams","hooks_url":"https://api.github.com/repos/SFTtech/openage/hooks","issue_events_url":"https://api.github.com/repos/SFTtech/openage/issues/events{/number}","events_url":"https://api.github.com/repos/SFTtech/openage/events","assignees_url":"https://api.github.com/repos/SFTtech/openage/assignees{/user}","branches_url":"https://api.github.com/repos/SFTtech/openage/branches{/branch}","tags_url":"https://api.github.com/repos/SFTtech/openage/tags","blobs_url":"https://api.github.com/repos/SFTtech/openage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SFTtech/openage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SFTtech/openage/git/refs{/sha}","trees_url":"https://api.github.com/repos/SFTtech/openage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SFTtech/openage/statuses/{sha}","languages_url":"https://api.github.com/repos/SFTtech/openage/languages","stargazers_url":"https://api.github.com/repos/SFTtech/openage/stargazers","contributors_url":"https://api.github.com/repos/SFTtech/openage/contributors","subscribers_url":"https://api.github.com/repos/SFTtech/openage/subscribers","subscription_url":"https://api.github.com/repos/SFTtech/openage/subscription","commits_url":"https://api.github.com/repos/SFTtech/openage/commits{/sha}","git_commits_url":"https://api.github.com/repos/SFTtech/openage/git/commits{/sha}","comments_url":"https://api.github.com/repos/SFTtech/openage/comments{/number}","issue_comment_url":"https://api.github.com/repos/SFTtech/openage/issues/comments{/number}","contents_url":"https://api.github.com/repos/SFTtech/openage/contents/{+path}","compare_url":"https://api.github.com/repos/SFTtech/openage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SFTtech/openage/merges","archive_url":"https://api.github.com/repos/SFTtech/openage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SFTtech/openage/downloads","issues_url":"https://api.github.com/repos/SFTtech/openage/issues{/number}","pulls_url":"https://api.github.com/repos/SFTtech/openage/pulls{/number}","milestones_url":"https://api.github.com/repos/SFTtech/openage/milestones{/number}","notifications_url":"https://api.github.com/repos/SFTtech/openage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SFTtech/openage/labels{/name}","releases_url":"https://api.github.com/repos/SFTtech/openage/releases{/id}","created_at":"2013-11-03T22:35:23Z","updated_at":"2015-08-19T15:28:30Z","pushed_at":"2015-08-18T00:57:39Z","git_url":"git://github.com/SFTtech/openage.git","ssh_url":"git@github.com:SFTtech/openage.git","clone_url":"https://github.com/SFTtech/openage.git","svn_url":"https://github.com/SFTtech/openage","homepage":"http://openage.sft.mx","size":9075,"stargazers_count":3079,"watchers_count":3079,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":286,"mirror_url":null,"open_issues_count":93,"forks":286,"open_issues":93,"watchers":3079,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/351"},"html":{"href":"https://github.com/SFTtech/openage/pull/351"},"issue":{"href":"https://api.github.com/repos/SFTtech/openage/issues/351"},"comments":{"href":"https://api.github.com/repos/SFTtech/openage/issues/351/comments"},"review_comments":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/351/comments"},"review_comment":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SFTtech/openage/pulls/351/commits"},"statuses":{"href":"https://api.github.com/repos/SFTtech/openage/statuses/0d9b66645447b8a5d71dbe1a90529a248d6ae255"}}}}