Log files not generated
I tried to collect some log data on the (failing) connection process for my new Mi Band 2 with Gadgetbridge. I checked "Write Log Files" under "Developer options" on the "Settings" screen, but can't find the log files anywhere on my device.
The Wiki states that Gadgedbridge's log files could be found at
/sdcard/Android/data/nodomain.freeyourgadget.gadgetbridge/files/gadgetbridge.log, but I can't find it on that path -- neither on my internal or external storage.
A restart of the App also didn't help.
I have the latest Gadgedbridge version (0.13.3) installed on my HTC One M8 with CM 12.1.
Noooo, not again!! Can you try to get some normal logcat output, either with adb from the PC or with a logcat app on your device? If anything's wrong, it should at least write something to the normal logcat.
Attached (see end of this post) is a logcat log of starting Gadgedbridge and enabling logging ("Write Log Files").
Strange, seems like Gadgedbridge can't write to my external SD card...
10-10 19:21:08.652 I/nodomain.freeyourgadget.gadgetbridge.util.GB( 5773): ignoring non-writable external storage dir: /storage/sdcard1/Android/data/nodomain.freeyourgadget.gadgetbridge/files 10-10 19:21:08.654 I/System.out( 5773): 19:21:08,654 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: GB_LOGFILES_DIR_IS_UNDEFINED/gadgetbridge.log 10-10 19:21:08.655 I/System.out( 5773): 19:21:08,655 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [/data/data/nodomain.freeyourgadget.gadgetbridge/files/GB_LOGFILES_DIR_IS_UNDEFINED/gadgetbridge.log]
Why isn't it using the internal storage anyway (not all devices have external SD cards)?
File creation on the internal storage doesn't seem to cause any problems though, as Gadgedbridge can create a database backup file there.
We try really hard to find the best writable storage directory, that is accessible by the user (who is often not root). I changed on thing which hopefully resolves the issue for you.
With the new version of Gadgetbridge, the issue is gone and log files are created on my internal storage as described in the wiki.
Many thanks! 👍
Deleting a branch is permanent. It CANNOT be undone. Continue?