{"action":"created","issue":{"url":"https://api.github.com/repos/tux3/qTox/issues/1615","labels_url":"https://api.github.com/repos/tux3/qTox/issues/1615/labels{/name}","comments_url":"https://api.github.com/repos/tux3/qTox/issues/1615/comments","events_url":"https://api.github.com/repos/tux3/qTox/issues/1615/events","html_url":"https://github.com/tux3/qTox/issues/1615","id":75195987,"number":1615,"title":"Keep the log files gzipped","user":{"login":"tux3","id":5155966,"avatar_url":"https://avatars.githubusercontent.com/u/5155966?v=3","gravatar_id":"","url":"https://api.github.com/users/tux3","html_url":"https://github.com/tux3","followers_url":"https://api.github.com/users/tux3/followers","following_url":"https://api.github.com/users/tux3/following{/other_user}","gists_url":"https://api.github.com/users/tux3/gists{/gist_id}","starred_url":"https://api.github.com/users/tux3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux3/subscriptions","organizations_url":"https://api.github.com/users/tux3/orgs","repos_url":"https://api.github.com/users/tux3/repos","events_url":"https://api.github.com/users/tux3/events{/privacy}","received_events_url":"https://api.github.com/users/tux3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tux3/qTox/labels/proposal","name":"proposal","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-11T11:50:37Z","updated_at":"2015-05-11T19:59:32Z","closed_at":null,"body":"To drive the size down, they can get pretty huge currently.\r\n\r\nSince all the log entries are just copies of other lines with a timestamp, this should be pretty effective.\r\n\r\nThe logs still need to be copy-pastable for bug reports, so we could base64 the gzip'd data.\r\nThat's probably easier than creating a proper .gz file w/ header/trailer and asking people to unzip that.\r\n"},"comment":{"url":"https://api.github.com/repos/tux3/qTox/issues/comments/101031465","html_url":"https://github.com/tux3/qTox/issues/1615#issuecomment-101031465","issue_url":"https://api.github.com/repos/tux3/qTox/issues/1615","id":101031465,"user":{"login":"tux3","id":5155966,"avatar_url":"https://avatars.githubusercontent.com/u/5155966?v=3","gravatar_id":"","url":"https://api.github.com/users/tux3","html_url":"https://github.com/tux3","followers_url":"https://api.github.com/users/tux3/followers","following_url":"https://api.github.com/users/tux3/following{/other_user}","gists_url":"https://api.github.com/users/tux3/gists{/gist_id}","starred_url":"https://api.github.com/users/tux3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tux3/subscriptions","organizations_url":"https://api.github.com/users/tux3/orgs","repos_url":"https://api.github.com/users/tux3/repos","events_url":"https://api.github.com/users/tux3/events{/privacy}","received_events_url":"https://api.github.com/users/tux3/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T19:59:32Z","updated_at":"2015-05-11T19:59:32Z","body":"@agilob \r\nIf we truncate on exit, if you never exit qTox the log file can get pretty big. But if we truncate every time you add a new log entry, it's slow and may trash the OS cache and disk.\r\n\r\nI think we should do both eventually. Truncate the log file on exit so it's never more than let's say 500kB after compression (that's a *lot* of logs), and even if you leave qTox open for several weeks since it's zipped it won't get really huge anyways."}}