Skip to content

Commit e9f4f73

Browse files
remove logging
1 parent 2b6e726 commit e9f4f73

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/dao/RegistrationDAO.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ FROM dual
362362
* @return the rating result
363363
*/
364364
async function getUserRating (userId, phaseId) {
365-
logger.info(`Get user rating for user ${userId} and phase ${phaseId}`)
366365
return helper.queryDataFromDB(QUERY_GET_USER_RATING, [phaseId, userId])
367366
}
368367

@@ -542,7 +541,6 @@ async function registerComponentInquiry (userId, challengeId) {
542541
if (!compInfo) {
543542
throw new Error(`Challenge with id: ${challengeId} does not exist`)
544543
}
545-
logger.info(`compInfo: ${JSON.stringify(compInfo)}`)
546544
const [userRating] = await getUserRating(userId, parseInt(compInfo.projectcategoryid, 10) + 111)
547545
let rating = null
548546
if (userRating) {

src/services/ResourceDirectManager.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,17 @@ async function assignRole (legacyChallengeId, roleId, userId, handle, copilotPay
4343
}
4444
}
4545

46-
logger.info('Before isSubmitterRole')
4746
if (isSubmitterRole(roleId)) {
48-
logger.info('is submitter role, it should register component inquiry and project result')
4947
const compInfo = await RegistrationDAO.registerComponentInquiry(userId, legacyChallengeId)
5048
let { rating } = compInfo
5149
if (!isStudioChallenge) {
5250
if (!RegistrationDAO.isRatingSuitableDevelopment(parseInt(compInfo.phaseid, 10), parseInt(compInfo.projectcategoryid, 10)) ? compInfo.rating : null) {
5351
rating = null
5452
}
55-
logger.info('Register project result')
5653
await RegistrationDAO.insertChallengeResult(legacyChallengeId, userId, 0, 0, rating)
5754
// User reliability
5855
const [rel] = await RegistrationDAO.getUserReliability(userId, legacyChallengeId)
5956
if (rel) {
60-
logger.info('Update user reliability')
6157
await RegistrationDAO.persistResourceInfo(userId, resourceId, RegistrationDAO.RESOURCE_TYPE_USER_RELIABILITY, rel*100);
6258
}
6359
}

0 commit comments

Comments
 (0)