Skip to content

Commit 468fb8b

Browse files
TCA-515 add logging for cert urls #time 3h
1 parent d135578 commit 468fb8b

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)