clean up debug info, reduce page weight

This commit is contained in:
2024-09-26 10:07:27 +01:00
parent 00359e2f7d
commit a362a2c00f
11 changed files with 49 additions and 36 deletions
+20 -20
View File
@@ -70,11 +70,11 @@ export const createContainerSas = async (containerName) => {
expiresOn: TEN_MINUTES_AFTER_NOW,
};
console.log(
"\n////////////////////////\nsasOptions :",
JSON.stringify(sasOptions),
"\n////////////////////////"
);
// console.log(
// "\n////////////////////////\nsasOptions :",
// JSON.stringify(sasOptions),
// "\n////////////////////////"
// );
const sasToken = generateBlobSASQueryParameters(
sasOptions,
@@ -82,11 +82,11 @@ export const createContainerSas = async (containerName) => {
accountName
).toString();
console.log(
"\n////////////////////////\nsasToken :",
sasToken,
"\n////////////////////////"
);
// console.log(
// "\n////////////////////////\nsasToken :",
// sasToken,
// "\n////////////////////////"
// );
return sasToken;
};
@@ -140,7 +140,7 @@ export const createBlobSas = async (containerName, blobName) => {
export const createContainer = async (containerName) => {
const creds = new DefaultAzureCredential();
console.log(JSON.stringify(creds));
//console.log(JSON.stringify(creds));
//containerName = containerName.toLowerCase();
//console.log(
@@ -159,7 +159,7 @@ export const createContainer = async (containerName) => {
const createContainerResponse = await containerClient
.createIfNotExists()
.then((data) => {
console.log(data);
//console.log(data);
return data;
})
.catch((error) => {
@@ -933,7 +933,7 @@ export const downloadAllRepsFiles = async (containerName, repsBlobObj) => {
Array.isArray(repsBlobObj) &&
!repsBlobObj.length &&
console.log("is empt and an array");
console.log("No partial reps for this container:" + containerName);
for (const prop in repsBlobObj) {
//console.log(`Progress - ${prop}: ${repsBlobObj[prop].path}`);
@@ -1128,13 +1128,13 @@ export const getAllProgressBlobs = async (containerName) => {
});
}
console.log(
"\n////////////////////////////\n",
sasUrl,
"blobObj:",
blobObj,
"\n////////////////////////////"
);
// console.log(
// "\n////////////////////////////\n",
// sasUrl,
// "blobObj:",
// blobObj,
// "\n////////////////////////////"
// );
return blobObj;
};