aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/org/pacien/tincapp/context/App.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/context/App.kt b/app/src/main/java/org/pacien/tincapp/context/App.kt
index 7ec1a47..d806659 100644
--- a/app/src/main/java/org/pacien/tincapp/context/App.kt
+++ b/app/src/main/java/org/pacien/tincapp/context/App.kt
@@ -4,10 +4,12 @@ import android.app.Application
4import android.content.Context 4import android.content.Context
5import android.content.Intent 5import android.content.Intent
6import android.net.Uri 6import android.net.Uri
7import android.os.Build
7import android.os.Handler 8import android.os.Handler
8import android.support.annotation.StringRes 9import android.support.annotation.StringRes
9import android.support.v7.app.AlertDialog 10import android.support.v7.app.AlertDialog
10import android.view.WindowManager 11import android.view.WindowManager
12import org.pacien.tincapp.BuildConfig
11import org.pacien.tincapp.R 13import org.pacien.tincapp.R
12import org.slf4j.LoggerFactory 14import org.slf4j.LoggerFactory
13import java.io.File 15import java.io.File
@@ -22,6 +24,10 @@ class App : Application() {
22 handler = Handler() 24 handler = Handler()
23 AppLogger.configure() 25 AppLogger.configure()
24 setupCrashHandler() 26 setupCrashHandler()
27
28 val logger = LoggerFactory.getLogger(this.javaClass)
29 logger.info("Starting tinc app {} ({} build), running on {} ({})",
30 BuildConfig.VERSION_NAME, BuildConfig.BUILD_TYPE, Build.VERSION.CODENAME, Build.VERSION.RELEASE)
25 } 31 }
26 32
27 private fun setupCrashHandler() { 33 private fun setupCrashHandler() {