forked from baron/baron-sso
[WIP]모바일 로그인창 테스트 강화중
This commit is contained in:
@@ -52,14 +52,11 @@ class LogPolicy {
|
||||
required String? appEnv,
|
||||
required String? productionDebugFlag,
|
||||
}) {
|
||||
final flag = parseOptionalBoolFlag(productionDebugFlag);
|
||||
if (flag.specified) {
|
||||
return flag.enabled;
|
||||
}
|
||||
if (!isProductionEnv(appEnv)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
final flag = parseOptionalBoolFlag(productionDebugFlag);
|
||||
return flag.specified && flag.enabled;
|
||||
}
|
||||
|
||||
static bool shouldRelayClientLog({
|
||||
@@ -67,10 +64,12 @@ class LogPolicy {
|
||||
required String? appEnv,
|
||||
required String? productionDebugFlag,
|
||||
}) {
|
||||
if (debugEnabled(
|
||||
appEnv: appEnv,
|
||||
productionDebugFlag: productionDebugFlag,
|
||||
)) {
|
||||
final flag = parseOptionalBoolFlag(productionDebugFlag);
|
||||
final debugRelayEnabled = isProductionEnv(appEnv)
|
||||
? flag.specified && flag.enabled
|
||||
: !(flag.specified && !flag.enabled);
|
||||
|
||||
if (debugRelayEnabled) {
|
||||
return true;
|
||||
}
|
||||
final normalized = level.trim().toUpperCase();
|
||||
|
||||
Reference in New Issue
Block a user