diff --git a/src/logger.ts b/src/logger.ts index 603d5a0..c16828f 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -2,7 +2,7 @@ import log from "loglevel"; import { apply, reg } from "loglevel-plugin-prefix"; export function initLogger() { - log.setLevel(import.meta.env.VITE_LOG_LEVEL ?? 'info'); + log.setLevel(import.meta.env.VITE_LOG_LEVEL); reg(log); apply(log, {template: '[%t] %l:'}); } diff --git a/src/marbas/marbasService.ts b/src/marbas/marbasService.ts index 12a95bc..990d2df 100644 --- a/src/marbas/marbasService.ts +++ b/src/marbas/marbasService.ts @@ -33,7 +33,7 @@ marbasAxiosInstance.interceptors.response.use(async r => { let results = r.data?.results; if (!next.startsWith(import.meta.env.VITE_MARBAS_URL)) { // FIME remove once the API is fixed - next = import.meta.env.VITE_MARBAS_URL + next.replace(/http(s)?:\/\/[^/]+/g, ''); + next = import.meta.env.VITE_MARBAS_URL + next.replace(/http(s)?:\/\/[^/]+\//g, ''); } if (next) { results = results.concat((await marbasAxiosInstance.request({