From 0576f431dcd625a34a69e54d9cd599649c3d7982 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 28 Sep 2023 12:05:48 +0100 Subject: [PATCH] Mingrate list.services to new logger Signed-off-by: Fred Boniface --- src/services/list.services.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/services/list.services.js b/src/services/list.services.js index 26f23ee..51edabc 100644 --- a/src/services/list.services.js +++ b/src/services/list.services.js @@ -1,15 +1,16 @@ -const log = require("../utils/logs.utils"); // Log Helper const db = require("../services/dbAccess.services"); +import { logger } from "../utils/logger.utils"; + async function getStations() { var out = db.query("stations"); - log.out("listServices.getStations: Fetching stations list", "info"); + logger.debug("listServices.getStations: Fetching stations list"); return await out; } async function getCorpus() { var out = db.query("corpus"); - log.out("listServices.getCorpus: Fetching CORPUS list", "info"); + logger.debug("listServices.getCorpus: Fetching CORPUS list"); return await out; }