Android App: Huge Log files eating up 300+MB, Debug mode is probably enabled resulting in huge log files
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 9.2k
- Forks
- 1.3k
- Avg merge
- 12h 58m
- Merged PRs (30d)
- 56
Description
Hi guys,
Please check as it looks like Debug mode is enabled by default in your app and logs files are being generated taking up huge amounts of space. I am using Keybase 1.0.8.
In particular, I noticed recently that my phone complained of low free space and pointed me to the Keybase app taking up almost 500 MB! After checking with root-browser, I noticed that there are 3 huge files in /data/data/io.keybase.ossifrage/files/
The culprits are 3 log files, named:
service.log (51MB and rising, cant open it, permission denied)
service.log-20171024T174619Z-20171024T214349Z (128MB, 570K lines like the following:
_2017-10-20T23:39:12.922236Z ▶ [DEBU keybase login_state.go:1008] 1d2d * LoginState account request complete: acctReq GetUID...........
2017-10-20T23:39:12.922328Z ▶ [DEBU keybase login_state.go:968] 1d2e - acctHandle done:............
service.log-20171113T154006Z-20171113T154046Z (128MB)
(same as above)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the Android app's files directory at /data/data/io.keybase.ossifrage/files/ and the reported service.log files from Keybase 1.0.8. Confirm what produces the logs and whether debug-level output is enabled by default; done means the app no longer creates unbounded log files that consume hundreds of megabytes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, go
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100