Configure tinylog

This commit is contained in:
Jannis Mattheis
2023-10-07 14:22:12 +02:00
parent 361c480a7c
commit 8adb3095f8
7 changed files with 61 additions and 67 deletions

View File

@@ -28,7 +28,7 @@ import com.github.gotify.client.api.ApplicationApi
import com.github.gotify.client.api.MessageApi
import com.github.gotify.client.model.Application
import com.github.gotify.client.model.Message
import com.github.gotify.log.Log
import com.github.gotify.log.LoggerHelper
import com.github.gotify.log.UncaughtExceptionHandler
import com.github.gotify.messages.Extras
import com.github.gotify.messages.IntentUrlDialogActivity
@@ -88,7 +88,7 @@ internal class WebSocketService : Service() {
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
Log.init(this)
LoggerHelper.init(this)
if (connection != null) {
connection!!.close()
}