From 1654538159abc643bc4d6a2790bfa2dff764b74e Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Sat, 8 Jun 2024 23:39:22 +0800 Subject: [PATCH] Cancel the verbose logging --- src/scripts/filters.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/scripts/filters.js b/src/scripts/filters.js index 9e27da2..451cee8 100644 --- a/src/scripts/filters.js +++ b/src/scripts/filters.js @@ -81,12 +81,12 @@ export default class FilterManager { }; if (!filters.isEmpty()) { + // Inform the user of download state. + new logging (texts.localized(`settings_filters_update_status`)); + while (!filters.isEmpty()) { let filter_URL = filters.dequeue(); - // Inform the user of download state. - new logging (texts.localized(`settings_filters_update_status`), filter_URL); - try { let DOWNLOAD = await net.download(filter_URL, `JSON`, false, true); @@ -103,15 +103,15 @@ export default class FilterManager { : false) { throw ReferenceError; }; - - // Notify that the update is completed. - new logging(texts.localized(`settings_filters_update_status_complete`),filter_URL); }; } catch (error) { // 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); }; - } + }; + + // Notify that the update is completed. + new logging(texts.localized(`settings_filters_update_status_complete`)); } else { // Inform the user of the download being unnecessary. logging.warn(texts.localized(`settings_filters_update_stop`));