diff --git a/src/components/widgets/glances/glances.jsx b/src/components/widgets/glances/glances.jsx index 75bdeb711..a48cef50c 100644 --- a/src/components/widgets/glances/glances.jsx +++ b/src/components/widgets/glances/glances.jsx @@ -1,5 +1,4 @@ import useSWR from "swr"; - import { BiError } from "react-icons/bi"; import { FaMemory } from "react-icons/fa"; import { FiCpu } from "react-icons/fi"; diff --git a/src/pages/api/widgets/glances.js b/src/pages/api/widgets/glances.js index 26edbb81f..b02028600 100644 --- a/src/pages/api/widgets/glances.js +++ b/src/pages/api/widgets/glances.js @@ -1,4 +1,7 @@ import { httpProxy } from "utils/proxy/http"; +import createLogger from "utils/logger"; + +const logger = createLogger("glances"); export default async function handler(req, res) { const { url } = req.query; @@ -12,7 +15,7 @@ export default async function handler(req, res) { "Accept-Encoding": "application/json" } }; - const [status, contentType, data, responseHeaders] = await httpProxy(apiUrl, params); + const [status, contentType, data] = await httpProxy(apiUrl, params); if (status !== 200) { logger.error("HTTP %d getting data from glances API %s. Data: %s", status, apiUrl, data);