{"action":"created","issue":{"url":"https://api.github.com/repos/drone/drone/issues/733","labels_url":"https://api.github.com/repos/drone/drone/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/733/comments","events_url":"https://api.github.com/repos/drone/drone/issues/733/events","html_url":"https://github.com/drone/drone/issues/733","id":50264851,"number":733,"title":"stdout'ing megabytes of data breaks Chrome","user":{"login":"nils-werner","id":88704,"avatar_url":"https://avatars.githubusercontent.com/u/88704?v=3","gravatar_id":"","url":"https://api.github.com/users/nils-werner","html_url":"https://github.com/nils-werner","followers_url":"https://api.github.com/users/nils-werner/followers","following_url":"https://api.github.com/users/nils-werner/following{/other_user}","gists_url":"https://api.github.com/users/nils-werner/gists{/gist_id}","starred_url":"https://api.github.com/users/nils-werner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nils-werner/subscriptions","organizations_url":"https://api.github.com/users/nils-werner/orgs","repos_url":"https://api.github.com/users/nils-werner/repos","events_url":"https://api.github.com/users/nils-werner/events{/privacy}","received_events_url":"https://api.github.com/users/nils-werner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-27T08:12:33Z","updated_at":"2015-07-08T20:23:53Z","closed_at":null,"body":"While downloading a ZIP file I accidentally didn't save it to a file but had `curl` print it to stdout. The result is now a big `drone.sqlite` file and a browser that breaks down every time I visit the commit build status.\r\n\r\n - Does drone automatically prune old commit logs?\r\n - Is there a way to force something like that\r\n - Can we implement a countermeasure for occasions like these (this is also a security threat as people could just cat `/dev/urandom` into stdout, filling the Drone database with junk)"},"comment":{"url":"https://api.github.com/repos/drone/drone/issues/comments/119720223","html_url":"https://github.com/drone/drone/issues/733#issuecomment-119720223","issue_url":"https://api.github.com/repos/drone/drone/issues/733","id":119720223,"user":{"login":"ye","id":133924,"avatar_url":"https://avatars.githubusercontent.com/u/133924?v=3","gravatar_id":"","url":"https://api.github.com/users/ye","html_url":"https://github.com/ye","followers_url":"https://api.github.com/users/ye/followers","following_url":"https://api.github.com/users/ye/following{/other_user}","gists_url":"https://api.github.com/users/ye/gists{/gist_id}","starred_url":"https://api.github.com/users/ye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ye/subscriptions","organizations_url":"https://api.github.com/users/ye/orgs","repos_url":"https://api.github.com/users/ye/repos","events_url":"https://api.github.com/users/ye/events{/privacy}","received_events_url":"https://api.github.com/users/ye/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T20:23:53Z","updated_at":"2015-07-08T20:23:53Z","body":"@bradrydzewski Conversely, truncating the terminal log output defeated the purpose of logging, as we are missing the critical piece of information of why the build failed.\r\n\r\nAdditionally, each line of truncation emitted a line of `Truncating build output ...` annoyingly! \r\n![screen shot 2015-07-08 at 4 22 13 pm](https://cloud.githubusercontent.com/assets/133924/8581250/912d9c88-258d-11e5-9a58-6c6e00c79fdc.png)\r\n\r\nI think we should have a raw copy of the terminal output log somewhere stored into SQLite/MySQL/PostgreSQL. And then truncating on the browser output if necessary."}}