1
0
forked from baron/baron-sso

[WIP]모바일 로그인창 테스트 강화중

This commit is contained in:
2026-05-27 12:29:56 +09:00
parent 368f4bbad8
commit e240470d04
10 changed files with 199 additions and 20 deletions

View File

@@ -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();