Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush-jain-akto committed Jan 13, 2025
1 parent 22d9c91 commit b407855
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3218,9 +3218,14 @@ public static void processTemplateFilesZip(byte[] zipFile, String author, String
String testConfigId = testConfig.getId();

existingTemplatesInDb = mapIdToHash.get(testConfigId);

loggerMaker.infoAndAddToDb("Trying to add test yaml: " + testConfigId + " existingTemplatesInDb: " + existingTemplatesInDb, LogDb.DASHBOARD);

if (existingTemplatesInDb != null && existingTemplatesInDb.size() == 1) {
loggerMaker.infoAndAddToDb("Trying to add test yaml: " + testConfigId + " existingTemplatesInDb size: " + existingTemplatesInDb.size(), LogDb.DASHBOARD);

int existingTemplateHash = existingTemplatesInDb.get(0).getHash();
loggerMaker.infoAndAddToDb("Hashes: " + testConfigId + " hashDB: " + existingTemplateHash + " template: " + existingTemplateHash, LogDb.DASHBOARD);

if (existingTemplateHash == templateContent.hashCode()) {
countUnchangedTemplates++;
if(TestConfig.isTestMultiNode(testConfig)){
Expand All @@ -3231,6 +3236,7 @@ public static void processTemplateFilesZip(byte[] zipFile, String author, String
loggerMaker.infoAndAddToDb("Updating test yaml: " + testConfigId, LogDb.DASHBOARD);
}
}
loggerMaker.infoAndAddToDb("Reached end: " + testConfigId, LogDb.DASHBOARD);

} catch (Exception e) {
loggerMaker.errorAndAddToDb(e,
Expand Down

0 comments on commit b407855

Please sign in to comment.