0

An Android app I'm working on uses logcat to write all log info from the project into text files that are stored in an installed device's sdcard. Currently the log files are limited to a 100 320 kilobyte files that the system starts overwriting when filled to save space and reduce clutter.

The app is part of a pair where another app sends user input information via MQTT messages and the other (this one) displays the information via HTML-based pages that uses CSS for layouts and JavaScript to update some values.

I'm having a problem where the log files are being filled with a log message like this:

<date and time here> 392-412 HWComposer pid-392 W Ignoring duplicate VSYNC event from HWC (t=0)

Since this is an Android warning and seems not something I can turn off inside the project is there any way to disable this specific warning from appearing in the app's log files?

The other app that doesn't use HTML, CSS or JavaScript and does not print the same line in its logs.

These messages are appearing at least tens of times every second which makes troubleshooting problems with the app all but impossible since the 100 files will be filled sometimes within 15 minutes because of the above message.

A quick and dirty solution would be to simply increase the number and size of the log files but that's not really feasible and it would be preferable to find out how to disable the specific Warning from showing up in the logs in the first place.

Currently the system is using

logcat -f /sdcard/logs.log -v time -n 100 -r 320

to log the information.

I've tried looking up information about logcat and its use but it seems to mainly focus on using filters to strip off unneeded information while running the program which is not really feasible for my use case since the logs are written into the files for later review.

I've tried going to the test device's Developer options and forcing GPU rendering but that didn't seem to change anything.

Thanks, any advice would be appreciated.

0 Answers0