From 79e77419e7568dd8ac960b7d65c2cd9c7dde546d Mon Sep 17 00:00:00 2001 From: Nickyux Date: Mon, 21 Nov 2022 16:50:40 +0100 Subject: Remove debug logging --- src/components/PluginSettings/index.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index 58b1f87..4019bcc 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -248,29 +248,19 @@ export default ErrorBoundary.wrap(function Settings() { }; const [newPlugins, error, newPluginsLoading] = useAwaiter(() => DataStore.get("Vencord_existingPlugins").then((existingPlugins: Record) => { - logger.info("called func"); const dateNow: number = Date.now() / 1000; - logger.debug("dateNow", dateNow); let Vencord_existingPlugins: Record = {}; let newPlugins: Array = []; - logger.info("sortedPlugins", sortedPlugins); - logger.info("existingPlugins (or list)", existingPlugins ? existingPlugins : []); - logger.info("Object.keys(existingPlugins ? existingPlugins : [])", Object.keys(existingPlugins ? existingPlugins : [])); sortedPlugins.forEach(plugin => { - logger.debug(plugin.name); Vencord_existingPlugins[plugin.name] = Object.keys(existingPlugins ? existingPlugins : []).includes(plugin.name) ? existingPlugins[plugin.name] : dateNow; - logger.debug("1"); if ((Vencord_existingPlugins[plugin.name] + 172800) > dateNow) { newPlugins.push(plugin.name); } }); - DataStore.set("Vencord_existingPlugins", Vencord_existingPlugins).then(() => { logger.info("set Vencord_existingPlugins"); }).catch((err) => { logger.info("set Vencord_existingPlugins raised", err); }); + DataStore.set("Vencord_existingPlugins", Vencord_existingPlugins); return newPlugins; })); - logger.debug("newPlugins", newPlugins); - logger.debug("error", error); - return ( -- cgit