Mingrate kube.services to new logger

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-09-28 12:03:46 +01:00
parent 61648602bd
commit c57375f734

View File

@ -1,13 +1,14 @@
const testing = require("../services/mail.services"); const testing = require("../services/mail.services");
const log = require("../utils/logs.utils");
import { logger } from "../utils/logger.utils";
async function getAlive() { async function getAlive() {
log.out("kubeServices.getAlive: alive hook checked", "info"); logger.trace("kubeServices.getAlive: alive hook checked")
return { code: 200, state: { state: "alive", noise: "twit-twoo" } }; return { code: 200, state: { state: "alive", noise: "twit-twoo" } };
} }
async function getReady() { async function getReady() {
log.out("kubeServices.getReady: ready hook checked", "info"); logger.trace("kubeServices.getReady: ready hook checked");
testing.send({ testing.send({
to: "fred@fjla.uk", to: "fred@fjla.uk",
subject: "OwlBoard Test", subject: "OwlBoard Test",