File tree Expand file tree Collapse file tree
common/src/main/java/com/microsoft/identity/common/internal/broker Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments