diff --git a/Client/src/Pages/Monitors/Home/index.jsx b/Client/src/Pages/Monitors/Home/index.jsx index a03959076..4e72f0346 100644 --- a/Client/src/Pages/Monitors/Home/index.jsx +++ b/Client/src/Pages/Monitors/Home/index.jsx @@ -136,7 +136,7 @@ const Monitors = ({ isAdmin }) => { diff --git a/Client/src/Utils/Logger.js b/Client/src/Utils/Logger.js index ec50712aa..aaf4eec4e 100644 --- a/Client/src/Utils/Logger.js +++ b/Client/src/Utils/Logger.js @@ -1,5 +1,7 @@ import store from "../store"; const LOG_LEVEL = import.meta.env.VITE_APP_LOG_LEVEL || "debug"; +const NO_OP = () => {}; + class Logger { constructor() { let logLevel = LOG_LEVEL; @@ -11,8 +13,6 @@ class Logger { } updateLogLevel(logLevel) { - const NO_OP = () => {}; - if (logLevel === "none") { this.info = NO_OP; this.error = NO_OP;