Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit efde3e4

Browse files
author
James Cori
committed
Adding more logging
1 parent a29de88 commit efde3e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/challengeService.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,7 @@ async function buildV5Challenge (legacyId, challengeListing, challengeDetails) {
689689
})
690690
}
691691

692+
logger.debug(`v4 Phases ${JSON.stringify(challengeListing.phases)}`)
692693
newChallenge.startDate = moment(challengeListing.registrationStartDate).utc().format()
693694
let challengeEndDate = newChallenge.startDate
694695
const phases = _.map(challengeListing.phases, phase => {
@@ -714,7 +715,7 @@ async function buildV5Challenge (legacyId, challengeListing, challengeDetails) {
714715
} else {
715716
newPhase.isOpen = false
716717
}
717-
logger.debug(`Challenge ${legacyId} Phase ${phase.type} id ${newPhase.phaseId} Duration ${v5duration} = ${(v5duration / 60 / 60)} hrs or ${(v5duration / 60 / 60 / 24)} days`)
718+
logger.debug(`Challenge ${legacyId} Phase ${phase.type} Status ${phase.status} - id ${newPhase.phaseId} Duration ${v5duration} = ${(v5duration / 60 / 60)} hrs or ${(v5duration / 60 / 60 / 24)} days`)
718719
return newPhase
719720
})
720721
newChallenge.endDate = challengeEndDate

0 commit comments

Comments
 (0)