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

Commit 1e862e9

Browse files
Remove debug logs
1 parent 630057d commit 1e862e9

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/services/ProcessorService.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ async function createAchievement (userId, providerName, certifierId, certifiedDa
191191
*/
192192
async function createUserAttributes (userId, record) {
193193
let i = 1
194-
logger.debug(`*** createUserAttributes('${userId}','${JSON.stringify(record, null, 4)}')`)
195194
while (record[`attributeValue${i}`]) {
196195
logger.debug(`*** createUserAttributes: record number${i}`)
197196

@@ -204,8 +203,6 @@ async function createUserAttributes (userId, record) {
204203
const attributeGroup = await helper.getUbahnSingleRecord('/attributeGroups', { name: record[`attributeGroupName${i}`] })
205204
const attribute = await helper.getUbahnSingleRecord('/attributes', { attributeGroupId: attributeGroup.id, name: record[`attributeName${i}`] })
206205
const value = _.toString(record[`attributeValue${i}`])
207-
logger.debug(`*** createUserAttributes: attribute/value = ${JSON.stringify(attribute)}/${value}`)
208-
209206
const existingAttribute = await helper.getUbahnSingleRecord(`/users/${userId}/attributes/${attribute.id}`, {}, true)
210207

211208
if (!existingAttribute || !existingAttribute.id) {
@@ -248,8 +245,6 @@ async function processCreate (message) {
248245
try {
249246
const file = await helper.downloadFile(message.payload.objectKey)
250247
const records = helper.parseExcel(file)
251-
logger.info('Extracted records below:')
252-
logger.info(JSON.stringify(records, null, 4))
253248
const failedRecord = []
254249

255250
await Promise.map(records, record => processCreateRecord(record, failedRecord, message.payload.organizationId), { concurrency: config.PROCESS_CONCURRENCY_COUNT })

0 commit comments

Comments
 (0)