Skip to content

Commit 1b3b1a7

Browse files
Merge pull request #332 from topcoder-platform/TCA-515_cert-url-logging
TCA-515 add logging for cert urls -> develop
2 parents d135578 + 468fb8b commit 1b3b1a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src-ts/tools/learn/learn-lib/user-certifications-provider/user-certifications-functions/user-certification-progress.store.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { logInfo } from '../../../../../lib'
12
import { LearnConfig } from '../../../learn-config'
23
import { getUserCertificateUrl } from '../../../learn.routes'
34
import { learnUrlGet, learnXhrGetAsync, learnXhrPostAsync, learnXhrPutAsync } from '../../functions'
@@ -18,6 +19,9 @@ export function completeCourse(
1819
const certificateElement: string = `[${LearnConfig.CERT_ELEMENT_SELECTOR.attribute}=${LearnConfig.CERT_ELEMENT_SELECTOR.value}]`
1920
const certificateUrl: string = getUserCertificateUrl(provider, certification, handle)
2021

22+
console.debug('Completing course w certificate URL =', certificateUrl)
23+
logInfo(`Completing course w certificate URL = ${certificateUrl}`)
24+
2125
return updateAsync(
2226
certificationProgressId,
2327
UserCertificationUpdateProgressActions.completeCertificate,

0 commit comments

Comments
 (0)