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

Commit 1fc1937

Browse files
committed
Logging tweaks
1 parent 066d850 commit 1fc1937

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/topcoder-api-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ async function createChallenge(challenge) {
141141
}, challenge)
142142
});
143143
try {
144-
logger.debug('Challenge body:' + challengeBody);
144+
logger.debug(`Challenge body: ${challengeBody}`);
145145
const challengeResponse = await new Promise((resolve, reject) => {
146146
challengesApiInstance.saveDraftContest(challengeBody, (err, res) => {
147147
if (err) {
@@ -154,7 +154,7 @@ async function createChallenge(challenge) {
154154

155155
return _.get(challengeResponse, 'result.content.id');
156156
} catch (err) {
157-
logger.debug('Response:' + res);
157+
logger.debug(`Response: ${err}`);
158158
throw errors.convertTopcoderApiError(err, 'Failed to create challenge.');
159159
}
160160
}

0 commit comments

Comments
 (0)