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 {
withContext(dispatcher) {
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) {