Skip to content

Commit d953295

Browse files
committed
Revert "Ignore setShouldTrustDebugBrokers if is not a Debug build, Fixes AB#3515110 (#2900)"
This reverts commit d6aae3c.
1 parent f6a9ce1 commit d953295

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • common/src/main/java/com/microsoft/identity/common/internal/broker

common/src/main/java/com/microsoft/identity/common/internal/broker/BrokerData.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,10 @@ data class BrokerData(
8989
@JvmStatic
9090
fun setShouldTrustDebugBrokers(value: Boolean) {
9191
val methodTag = "$TAG:setShouldTrustDebugBrokers"
92-
if (BuildConfig.DEBUG) {
93-
sShouldTrustDebugBrokers = value
94-
Logger.info(methodTag, "Setting shouldTrustDebugBrokers to $value." +
95-
" This should only be used for testing purposes.")
96-
} else {
97-
Logger.warn(methodTag, "Attempting to set shouldTrustDebugBrokers to $value. " +
98-
"This change will be ignored since the current build is not a debug build.")
92+
if (!BuildConfig.DEBUG && value) {
93+
Logger.warn(methodTag, "You are forcing to trust debug brokers in non-debug builds.")
9994
}
95+
sShouldTrustDebugBrokers = value
10096
}
10197

10298
@JvmStatic

0 commit comments

Comments
 (0)