Remove of non-used console logs (#1842)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -480,7 +480,6 @@ const ListObjects = ({
|
||||
setObjectDetailsView(false);
|
||||
setSearchObjects("");
|
||||
} else {
|
||||
console.log("AQUI", decodedIPaths);
|
||||
setLoadingObjectInfo(true);
|
||||
setObjectDetailsView(true);
|
||||
setLoadingVersions(true);
|
||||
@@ -501,9 +500,7 @@ const ListObjects = ({
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("SET PATH");
|
||||
if (loading) {
|
||||
console.log("STE");
|
||||
if (displayListObjects) {
|
||||
let pathPrefix = "";
|
||||
if (internalPaths) {
|
||||
@@ -597,7 +594,6 @@ const ListObjects = ({
|
||||
// It is a folder, we remove loader & set original results list
|
||||
setLoadingObjectsList(false);
|
||||
setRecords(recordsInElement);
|
||||
console.log("1");
|
||||
} else {
|
||||
// This code prevents the program from opening a file when a substring of that file is entered as a new folder.
|
||||
// Previously, if there was a file test1.txt and the folder test was created with the same prefix, the program
|
||||
@@ -618,10 +614,8 @@ const ListObjects = ({
|
||||
!found
|
||||
) {
|
||||
// This is a folder, we set the original results list
|
||||
console.log("2");
|
||||
setRecords(recordsInElement);
|
||||
} else {
|
||||
console.log("3");
|
||||
// This is a file. We change URL & Open file details view.
|
||||
setObjectDetailsView(true);
|
||||
setSelectedObjectView(internalPaths);
|
||||
@@ -642,13 +636,11 @@ const ListObjects = ({
|
||||
}`
|
||||
)
|
||||
.then((res: BucketObjectItemsList) => {
|
||||
console.log("4");
|
||||
const records: BucketObjectItem[] = res.objects || [];
|
||||
|
||||
setRecords(records);
|
||||
})
|
||||
.catch(() => {
|
||||
console.log("5");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -656,12 +648,10 @@ const ListObjects = ({
|
||||
}
|
||||
})
|
||||
.catch((err: ErrorResponseHandler) => {
|
||||
console.log("6");
|
||||
setLoadingObjectsList(false);
|
||||
setErrorSnackMessage(err);
|
||||
});
|
||||
} else {
|
||||
console.log("7", recordsInElement);
|
||||
setRecords(recordsInElement);
|
||||
setLoadingObjectsList(false);
|
||||
}
|
||||
@@ -671,7 +661,6 @@ const ListObjects = ({
|
||||
setErrorSnackMessage(err);
|
||||
});
|
||||
} else {
|
||||
console.log("8");
|
||||
setLoadingObjectsList(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,7 +192,6 @@ const Console = ({
|
||||
.invoke("POST", "/api/v1/service/restart", {})
|
||||
.then((res) => {
|
||||
console.log("success restarting service");
|
||||
console.log(res);
|
||||
serverIsLoading(false);
|
||||
serverNeedsRestart(false);
|
||||
})
|
||||
@@ -202,7 +201,7 @@ const Console = ({
|
||||
}
|
||||
serverIsLoading(false);
|
||||
console.log("failure restarting service");
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ const Heal = ({ classes, distributedSetup }: IHeal) => {
|
||||
setBucketList(buckets);
|
||||
})
|
||||
.catch((err: ErrorResponseHandler) => {
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -346,7 +346,6 @@ const TenantSizeResources = ({
|
||||
name="resourcesMemoryLimit"
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
let value = parseInt(e.target.value);
|
||||
console.log("value", value);
|
||||
if (e.target.value === "") {
|
||||
updateField("resourcesMemoryLimitError", "");
|
||||
} else if (isNaN(value)) {
|
||||
|
||||
@@ -437,7 +437,7 @@ const TenantEncryption = ({
|
||||
setRefreshEncryptionInfo(false);
|
||||
})
|
||||
.catch((err: ErrorResponseHandler) => {
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
setRefreshEncryptionInfo(false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ const Watch = ({
|
||||
setBucketList(buckets);
|
||||
})
|
||||
.catch((err: ErrorResponseHandler) => {
|
||||
console.log(err);
|
||||
console.error(err);
|
||||
});
|
||||
};
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user