Skip to content

Commit

Permalink
[fix]: removed debug logging by default
Browse files Browse the repository at this point in the history
  • Loading branch information
F0x1d committed Oct 12, 2024
1 parent 989f8b2 commit 8a1a5cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/kotlin/com/f0x1d/logfox/LogFoxApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LogFoxApp: Application(), ImageLoaderFactory {
override fun onCreate() {
super.onCreate()

if (BuildConfig.DEBUG) {
if (BuildConfig.DEBUG && LOGGING_ENABLED) {
Timber.plant(timberFileTree)
}
Timber.d("onCreate")
Expand Down Expand Up @@ -75,4 +75,8 @@ class LogFoxApp: Application(), ImageLoaderFactory {
}

override fun newImageLoader(): ImageLoader = imageLoader

companion object {
private const val LOGGING_ENABLED = false
}
}

0 comments on commit 8a1a5cf

Please sign in to comment.