Merge pull request #4402 from element-hq/misc/enable-logcat-in-all-builds
Add feature flag to let the application prints logs to logcat in release builds.
This commit is contained in:
commit
4a2a675e69
3 changed files with 16 additions and 2 deletions
|
|
@ -168,4 +168,14 @@ enum class FeatureFlags(
|
|||
defaultValue = { true },
|
||||
isFinished = false,
|
||||
),
|
||||
PrintLogsToLogcat(
|
||||
key = "feature.print_logs_to_logcat",
|
||||
title = "Print logs to logcat",
|
||||
description = "Print logs to logcat in addition to log files. Requires an app restart to take effect." +
|
||||
"\n\nWARNING: this will make the logs visible in the device logs and may affect performance. " +
|
||||
"It's not intended for daily usage in release builds.",
|
||||
defaultValue = { buildMeta -> buildMeta.buildType != BuildType.RELEASE },
|
||||
// False so it's displayed in the developer options screen
|
||||
isFinished = false,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue