Cancel the verbose logging

This commit is contained in:
buzz-lightsnack-2007 2024-06-08 23:39:22 +08:00
parent ec72d1bc01
commit 1654538159

View file

@ -81,12 +81,12 @@ export default class FilterManager {
}; };
if (!filters.isEmpty()) { if (!filters.isEmpty()) {
// Inform the user of download state.
new logging (texts.localized(`settings_filters_update_status`));
while (!filters.isEmpty()) { while (!filters.isEmpty()) {
let filter_URL = filters.dequeue(); let filter_URL = filters.dequeue();
// Inform the user of download state.
new logging (texts.localized(`settings_filters_update_status`), filter_URL);
try { try {
let DOWNLOAD = await net.download(filter_URL, `JSON`, false, true); let DOWNLOAD = await net.download(filter_URL, `JSON`, false, true);
@ -103,15 +103,15 @@ export default class FilterManager {
: false) { : false) {
throw ReferenceError; throw ReferenceError;
}; };
// Notify that the update is completed.
new logging(texts.localized(`settings_filters_update_status_complete`),filter_URL);
}; };
} catch (error) { } catch (error) {
// Inform the user of the download failure. // Inform the user of the download failure.
logging.error(error.name, texts.localized(`settings_filters_update_status_failure`, null, [error.name, filter_URL]), error.stack); logging.error(error.name, texts.localized(`settings_filters_update_status_failure`, null, [error.name, filter_URL]), error.stack);
}; };
} };
// Notify that the update is completed.
new logging(texts.localized(`settings_filters_update_status_complete`));
} else { } else {
// Inform the user of the download being unnecessary. // Inform the user of the download being unnecessary.
logging.warn(texts.localized(`settings_filters_update_stop`)); logging.warn(texts.localized(`settings_filters_update_stop`));