Enable logcat logging on stable and debug builds without enabling verbose logging (#2836)
This commit is contained in:
@@ -31,6 +31,9 @@ The format is a modified version of [Keep a Changelog](https://keepachangelog.co
|
|||||||
- Fix pre-1970 upload date display in chapter list ([@MajorTanya](https://github.com/MajorTanya)) ([#2779](https://github.com/mihonapp/mihon/pull/2779))
|
- Fix pre-1970 upload date display in chapter list ([@MajorTanya](https://github.com/MajorTanya)) ([#2779](https://github.com/mihonapp/mihon/pull/2779))
|
||||||
- Fix crash when trying to install/update extensions while shizuku is not running ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken)) ([#2837](https://github.com/mihonapp/mihon/pull/2837))
|
- Fix crash when trying to install/update extensions while shizuku is not running ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken)) ([#2837](https://github.com/mihonapp/mihon/pull/2837))
|
||||||
|
|
||||||
|
### Other
|
||||||
|
- Enable logcat logging on stable and debug builds without enabling verbose logging ([@NGB-Was-Taken](https://github.com/NGB-Was-Taken)) ([#2836](https://github.com/mihonapp/mihon/pull/2836))
|
||||||
|
|
||||||
## [v0.19.3] - 2025-11-07
|
## [v0.19.3] - 2025-11-07
|
||||||
### Improved
|
### Improved
|
||||||
- Improved various aspects of the WebView multi window support ([@TheUnlocked](https://github.com/TheUnlocked)) ([#2662](https://github.com/mihonapp/mihon/pull/2662))
|
- Improved various aspects of the WebView multi window support ([@TheUnlocked](https://github.com/TheUnlocked)) ([#2662](https://github.com/mihonapp/mihon/pull/2662))
|
||||||
|
|||||||
@@ -158,8 +158,14 @@ class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.Factor
|
|||||||
// Updates widget update
|
// Updates widget update
|
||||||
WidgetManager(Injekt.get(), Injekt.get()).apply { init(scope) }
|
WidgetManager(Injekt.get(), Injekt.get()).apply { init(scope) }
|
||||||
|
|
||||||
if (!LogcatLogger.isInstalled && networkPreferences.verboseLogging().get()) {
|
if (!LogcatLogger.isInstalled) {
|
||||||
LogcatLogger.install(AndroidLogcatLogger(LogPriority.VERBOSE))
|
val minLogPriority = when {
|
||||||
|
networkPreferences.verboseLogging().get() -> LogPriority.VERBOSE
|
||||||
|
BuildConfig.DEBUG -> LogPriority.DEBUG
|
||||||
|
else -> LogPriority.INFO
|
||||||
|
}
|
||||||
|
LogcatLogger.install()
|
||||||
|
LogcatLogger.loggers += AndroidLogcatLogger(minLogPriority)
|
||||||
}
|
}
|
||||||
|
|
||||||
initializeMigrator()
|
initializeMigrator()
|
||||||
|
|||||||
Reference in New Issue
Block a user