Commit c30eb554 authored by Salman Chishti's avatar Salman Chishti
Browse files

debugging

parent 5b6ae99d
Loading
Loading
Loading
Loading
+5 −1
Changes for dist/restore-only/index.js: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5739,17 +5739,21 @@ class CacheServiceClient {
     */
    maskSigUrl(url, urlType) {
        const sigMatch = url.match(/[?&]sig=([^&]+)/);
        (0, core_1.debug)(`Sigmatch is ${sigMatch}`);
        if (sigMatch) {
            (0, core_1.setSecret)(sigMatch[1]);
            (0, core_1.setSecret)(url);
            (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
        }
    }
    maskSecretUrls(body) {
        (0, core_1.debug)('body is passed to masksecreturls');
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
            (0, core_1.debug)('entered that there is signedupload url');
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
        }
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
            (0, core_1.debug)('entered that there is signed download url');
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
        }
    }
+5 −1
Changes for dist/restore/index.js: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5739,17 +5739,21 @@ class CacheServiceClient {
     */
    maskSigUrl(url, urlType) {
        const sigMatch = url.match(/[?&]sig=([^&]+)/);
        (0, core_1.debug)(`Sigmatch is ${sigMatch}`);
        if (sigMatch) {
            (0, core_1.setSecret)(sigMatch[1]);
            (0, core_1.setSecret)(url);
            (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
        }
    }
    maskSecretUrls(body) {
        (0, core_1.debug)('body is passed to masksecreturls');
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
            (0, core_1.debug)('entered that there is signedupload url');
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
        }
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
            (0, core_1.debug)('entered that there is signed download url');
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
        }
    }
+5 −1
Changes for dist/save-only/index.js: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5739,17 +5739,21 @@ class CacheServiceClient {
     */
    maskSigUrl(url, urlType) {
        const sigMatch = url.match(/[?&]sig=([^&]+)/);
        (0, core_1.debug)(`Sigmatch is ${sigMatch}`);
        if (sigMatch) {
            (0, core_1.setSecret)(sigMatch[1]);
            (0, core_1.setSecret)(url);
            (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
        }
    }
    maskSecretUrls(body) {
        (0, core_1.debug)('body is passed to masksecreturls');
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
            (0, core_1.debug)('entered that there is signedupload url');
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
        }
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
            (0, core_1.debug)('entered that there is signed download url');
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
        }
    }
+5 −1
Changes for dist/save/index.js: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5739,17 +5739,21 @@ class CacheServiceClient {
     */
    maskSigUrl(url, urlType) {
        const sigMatch = url.match(/[?&]sig=([^&]+)/);
        (0, core_1.debug)(`Sigmatch is ${sigMatch}`);
        if (sigMatch) {
            (0, core_1.setSecret)(sigMatch[1]);
            (0, core_1.setSecret)(url);
            (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
        }
    }
    maskSecretUrls(body) {
        (0, core_1.debug)('body is passed to masksecreturls');
        (0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
        if ('signedUploadUrl' in body && body.signedUploadUrl) {
            (0, core_1.debug)('entered that there is signedupload url');
            this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
        }
        if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
            (0, core_1.debug)('entered that there is signed download url');
            this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
        }
    }