File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -307,11 +307,14 @@ function * getM2Mtoken () {
307307function * getSubmissionPhaseId ( challengeId ) {
308308 let phaseId = null
309309 let response
310+
310311 try {
312+ logger . info ( `Calling to challenge API to find submission phase Id for ${ challengeId } ` )
311313 const token = yield getM2Mtoken ( )
312314 response = yield request . get ( `${ config . CHALLENGEAPI_URL } /${ challengeId } /phases` )
313315 . set ( 'Authorization' , `Bearer ${ token } ` )
314316 . set ( 'Content-Type' , 'application/json' )
317+ logger . info ( `returned from finding submission phase Id for ${ challengeId } ` )
315318 } catch ( ex ) {
316319 logger . error ( `Error while accessing ${ config . CHALLENGEAPI_URL } /${ challengeId } /phases` )
317320 logger . debug ( 'Setting submissionPhaseId to Null' )
@@ -349,9 +352,11 @@ function * checkCreateAccess (authUser, subEntity) {
349352
350353 try {
351354 const token = yield getM2Mtoken ( )
355+ logger . info ( `Calling to challenge API for fetch phases and winners for ${ subEntity . challengeId } ` )
352356 response = yield request . get ( `${ config . CHALLENGEAPI_URL } ?filter=id=${ subEntity . challengeId } ` )
353357 . set ( 'Authorization' , `Bearer ${ token } ` )
354358 . set ( 'Content-Type' , 'application/json' )
359+ logger . info ( `returned for ${ subEntity . challengeId } with ${ JSON . stringify ( response ) } ` )
355360 } catch ( ex ) {
356361 logger . error ( `Error while accessing ${ config . CHALLENGEAPI_URL } ?filter=id=${ subEntity . challengeId } ` )
357362 logger . error ( ex )
You can’t perform that action at this time.
0 commit comments