File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -307,11 +307,14 @@ function * getM2Mtoken () {
307
307
function * getSubmissionPhaseId ( challengeId ) {
308
308
let phaseId = null
309
309
let response
310
+
310
311
try {
312
+ logger . info ( `Calling to challenge API to find submission phase Id for ${ challengeId } ` )
311
313
const token = yield getM2Mtoken ( )
312
314
response = yield request . get ( `${ config . CHALLENGEAPI_URL } /${ challengeId } /phases` )
313
315
. set ( 'Authorization' , `Bearer ${ token } ` )
314
316
. set ( 'Content-Type' , 'application/json' )
317
+ logger . info ( `returned from finding submission phase Id for ${ challengeId } ` )
315
318
} catch ( ex ) {
316
319
logger . error ( `Error while accessing ${ config . CHALLENGEAPI_URL } /${ challengeId } /phases` )
317
320
logger . debug ( 'Setting submissionPhaseId to Null' )
@@ -349,9 +352,11 @@ function * checkCreateAccess (authUser, subEntity) {
349
352
350
353
try {
351
354
const token = yield getM2Mtoken ( )
355
+ logger . info ( `Calling to challenge API for fetch phases and winners for ${ subEntity . challengeId } ` )
352
356
response = yield request . get ( `${ config . CHALLENGEAPI_URL } ?filter=id=${ subEntity . challengeId } ` )
353
357
. set ( 'Authorization' , `Bearer ${ token } ` )
354
358
. set ( 'Content-Type' , 'application/json' )
359
+ logger . info ( `returned for ${ subEntity . challengeId } with ${ JSON . stringify ( response ) } ` )
355
360
} catch ( ex ) {
356
361
logger . error ( `Error while accessing ${ config . CHALLENGEAPI_URL } ?filter=id=${ subEntity . challengeId } ` )
357
362
logger . error ( ex )
You can’t perform that action at this time.
0 commit comments