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

Commit 746c4a1

Browse files
committed
Better logging
1 parent 31f3aeb commit 746c4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/topcoder-api-helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async function createChallenge(challenge) {
122122
Status Code:${statusCode}, Response: ${circularJSON.stringify(challengeResponse.result)}`);
123123
return _.get(challengeResponse, 'result.content.id');
124124
} catch (err) {
125-
loggerFile.info(`EndPoint: POST /challenges, POST parameters: ${circularJSON.stringify(challengeBody)}, Status Code:null,
125+
logger.debug(`EndPoint: POST /challenges, POST parameters: ${circularJSON.stringify(challengeBody)}, Status Code:null,
126126
Error: 'Failed to create challenge.', Details: ${circularJSON.stringify(err)}`);
127127
throw errors.convertTopcoderApiError(err, 'Failed to create challenge.');
128128
}

0 commit comments

Comments
 (0)