diff options
author | Nickyux <nmsturcke@gmail.com> | 2022-11-21 16:50:40 +0100 |
---|---|---|
committer | Nickyux <nmsturcke@gmail.com> | 2022-11-21 16:50:40 +0100 |
commit | 79e77419e7568dd8ac960b7d65c2cd9c7dde546d (patch) | |
tree | db4f5c49e80ff7b81fd928cbda6577d965566ffc /src/components/PluginSettings | |
parent | 861a26a95989788a29d65cfcc54f0460dce61368 (diff) | |
download | Vencord-79e77419e7568dd8ac960b7d65c2cd9c7dde546d.tar.gz Vencord-79e77419e7568dd8ac960b7d65c2cd9c7dde546d.tar.bz2 Vencord-79e77419e7568dd8ac960b7d65c2cd9c7dde546d.zip |
Remove debug logging
Diffstat (limited to 'src/components/PluginSettings')
-rw-r--r-- | src/components/PluginSettings/index.tsx | 12 |
1 files changed, 1 insertions, 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<string, number>) => { - logger.info("called func"); const dateNow: number = Date.now() / 1000; - logger.debug("dateNow", dateNow); let Vencord_existingPlugins: Record<string, number> = {}; let newPlugins: Array<string> = []; - 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 ( <Forms.FormSection tag="h1" title="Vencord"> <Forms.FormTitle tag="h5" className={classes(Margins.marginTop20, Margins.marginBottom8)}> |