1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-24 05:50:47 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge
José Rebelo efdc4c434a Correctly disable file logging if initialization fails
If logging initialization failed, the file logger would not be removed
correctly, and it would log to a GB_LOGFILES_DIR_IS_UNDEFINED directory.

Remove the file logger from the root appender, regardless of it being
null or not.

The issue can be easily reproduced before the fix by throwing an
exception in FileUtils#getExternalFilesDir. Before the fix, it would
still log to the aforementioned directory.

Aditionally, update the Settings screen to reflect that writing log
files is not available in such cases.
2022-08-06 00:34:47 +01:00
..
activities Correctly disable file logging if initialization fails 2022-08-06 00:34:47 +01:00
adapter Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
capabilities/password Mi Band 4: Add password support 2022-07-05 19:29:16 +01:00
contentprovider update license headers 2021-01-10 23:38:13 +01:00
database ControlCenter: added folders to ControlCenter 2022-06-28 14:01:51 +02:00
deviceevents Roidmi: Slight code cleanup 2021-12-26 18:27:01 +01:00
devices Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
entities add missing AbstractFitProActivitySample from entities (excluded by gitignore) 2021-09-24 10:00:36 +02:00
export add UUID to to GPX with opentracks namespace 2021-01-17 00:07:55 +01:00
externalevents Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
impl Fix tests after DeviceService changes 2022-08-05 21:36:16 +01:00
model Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
service Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
util Add another safeguard to prevent unintended slf4j setup 2022-08-05 21:35:24 +02:00
GBApplication.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
GBEnvironment.java Update license headers 2020-01-09 10:44:32 +01:00
GBException.java update license headers 2021-01-10 23:38:13 +01:00
LockHandler.java Update license headers 2020-01-09 10:44:32 +01:00
Logging.java Correctly disable file logging if initialization fails 2022-08-06 00:34:47 +01:00
LoggingExceptionHandler.java update license headers 2021-01-10 23:38:13 +01:00
SleepAlarmWidget.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00
Widget.java Allow DeviceService to target a specific device 2022-08-05 21:34:15 +02:00