improve logging

This commit is contained in:
Milos Kozak 2023-01-31 12:53:32 +01:00
parent f6670091ec
commit 23e60084d0

View file

@ -26,7 +26,7 @@ abstract class LoggingWorker(context: Context, workerParams: WorkerParameters, p
try { try {
withContext(dispatcher) { withContext(dispatcher) {
doWorkAndLog().also { doWorkAndLog().also {
aapsLogger.debug(LTag.WORKER, "Worker result ${it::class.java.simpleName.uppercase()} for ${this::class.java}") aapsLogger.debug(LTag.WORKER, "Worker result ${it::class.java.simpleName.uppercase()} for ${this@LoggingWorker::class.java}")
} }
} }
} catch (e: Exception) { } catch (e: Exception) {