Skip to content

Commit

Permalink
Merge pull request #1825 from akto-api-security/hotfix/add_debug_logs…
Browse files Browse the repository at this point in the history
…_for_login_flow

Adding debug logs
  • Loading branch information
Ark2307 authored Dec 14, 2024
2 parents caadd14 + b789ecb commit f903386
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/testing/src/main/java/com/akto/testing/TestExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ public void apiWiseInit(TestingRun testingRun, ObjectId summaryId, boolean debug
List<CustomAuthType> customAuthTypes = CustomAuthTypeDao.instance.findAll(CustomAuthType.ACTIVE,true);
TestingUtil testingUtil = new TestingUtil(authMechanism, sampleMessageStore, testRoles, testingRun.getUserEmail(), customAuthTypes);

logger.info("For account: " + accountId + " fetched test yamls and auth types");

try {
logger.info("For account: " + accountId + " initiating login flow");
LoginFlowResponse loginFlowResponse = triggerLoginFlow(authMechanism, 3);
if (!loginFlowResponse.getSuccess()) {
loggerMaker.errorAndAddToDb("login flow failed", LogDb.TESTING);
Expand Down Expand Up @@ -345,6 +348,7 @@ private LoginFlowResponse triggerLoginFlow(AuthMechanism authMechanism, int retr
LoginFlowResponse loginFlowResponse = null;
for (int i=0; i<retries; i++) {
try {
logger.info("retry attempt: " + i + " for login flow");
loginFlowResponse = executeLoginFlow(authMechanism, null);
if (loginFlowResponse.getSuccess()) {
loggerMaker.infoAndAddToDb("login flow success", LogDb.TESTING);
Expand Down

0 comments on commit f903386

Please sign in to comment.