log errors without tags

This commit is contained in:
Milos Kozak 2021-03-01 23:11:59 +01:00
parent 05d5f8217c
commit ae86cfea77
9 changed files with 10 additions and 10 deletions

View file

@ -591,14 +591,14 @@ class ActionStringHandler @Inject constructor(
result.inserted.forEach { nsUpload.uploadTempTarget(it) } result.inserted.forEach { nsUpload.uploadTempTarget(it) }
result.updated.forEach { nsUpload.updateTempTarget(it) } result.updated.forEach { nsUpload.updateTempTarget(it) }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving temporary target", it) aapsLogger.error("Error while saving temporary target", it)
}) })
else else
disposable += repository.runTransactionForResult(CancelCurrentTemporaryTargetIfAnyTransaction(System.currentTimeMillis())) disposable += repository.runTransactionForResult(CancelCurrentTemporaryTargetIfAnyTransaction(System.currentTimeMillis()))
.subscribe({ result -> .subscribe({ result ->
result.updated.forEach { nsUpload.updateTempTarget(it) } result.updated.forEach { nsUpload.updateTempTarget(it) }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving temporary target", it) aapsLogger.error("Error while saving temporary target", it)
}) })
} }

View file

@ -149,7 +149,7 @@ class DexcomPlugin @Inject constructor(
} }
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from Dexcom App", it) aapsLogger.error("Error while saving values from Dexcom App", it)
}) })
} catch (e: Exception) { } catch (e: Exception) {
aapsLogger.error("Error while processing intent from Dexcom App", e) aapsLogger.error("Error while processing intent from Dexcom App", e)

View file

@ -125,7 +125,7 @@ class EversensePlugin @Inject constructor(
nsUpload.uploadBg(it, GlucoseValue.SourceSensor.EVERSENSE.text) nsUpload.uploadBg(it, GlucoseValue.SourceSensor.EVERSENSE.text)
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from Eversense App", it) aapsLogger.error("Error while saving values from Eversense App", it)
}) })
} }
} }

View file

@ -82,7 +82,7 @@ class GlimpPlugin @Inject constructor(
nsUpload.uploadBg(it, GlucoseValue.SourceSensor.GLIMP.text) nsUpload.uploadBg(it, GlucoseValue.SourceSensor.GLIMP.text)
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from Glimp App", it) aapsLogger.error("Error while saving values from Glimp App", it)
}) })
return Result.success() return Result.success()
} }

View file

@ -100,7 +100,7 @@ class MM640gPlugin @Inject constructor(
nsUpload.uploadBg(it, GlucoseValue.SourceSensor.MM_600_SERIES.text) nsUpload.uploadBg(it, GlucoseValue.SourceSensor.MM_600_SERIES.text)
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from Eversense App", it) aapsLogger.error("Error while saving values from Eversense App", it)
}) })
} catch (e: JSONException) { } catch (e: JSONException) {
aapsLogger.error("Exception: ", e) aapsLogger.error("Exception: ", e)

View file

@ -139,7 +139,7 @@ class NSClientSourcePlugin @Inject constructor(
nsClientSourcePlugin.detectSource(it) nsClientSourcePlugin.detectSource(it)
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from NSClient App", it) aapsLogger.error("Error while saving values from NSClient App", it)
}) })
} catch (e: Exception) { } catch (e: Exception) {
aapsLogger.error("Unhandled exception", e) aapsLogger.error("Unhandled exception", e)

View file

@ -93,7 +93,7 @@ class PoctechPlugin @Inject constructor(
nsUpload.uploadBg(it, GlucoseValue.SourceSensor.POCTECH_NATIVE.text) nsUpload.uploadBg(it, GlucoseValue.SourceSensor.POCTECH_NATIVE.text)
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from Poctech App", it) aapsLogger.error("Error while saving values from Poctech App", it)
}) })
} catch (e: JSONException) { } catch (e: JSONException) {
aapsLogger.error("Exception: ", e) aapsLogger.error("Exception: ", e)

View file

@ -82,7 +82,7 @@ class TomatoPlugin @Inject constructor(
nsUpload.uploadBg(it, GlucoseValue.SourceSensor.LIBRE_1_TOMATO.text) nsUpload.uploadBg(it, GlucoseValue.SourceSensor.LIBRE_1_TOMATO.text)
} }
}, { }, {
aapsLogger.error(LTag.BGSOURCE, "Error while saving values from Tomato App", it) aapsLogger.error("Error while saving values from Tomato App", it)
}) })
return Result.success() return Result.success()
} }

View file

@ -78,7 +78,7 @@ class FabricPrivacy @Inject constructor(
// Crashlytics logException // Crashlytics logException
fun logException(throwable: Throwable) { fun logException(throwable: Throwable) {
FirebaseCrashlytics.getInstance().recordException(throwable) FirebaseCrashlytics.getInstance().recordException(throwable)
aapsLogger.error(LTag.CORE, "Exception: ", throwable) aapsLogger.error("Exception: ", throwable)
} }
fun fabricEnabled(): Boolean { fun fabricEnabled(): Boolean {