Replace winston with pino

This commit is contained in:
Tuan Dang
2023-10-31 15:03:36 +02:00
parent 4792e752c2
commit ad4513f926
11 changed files with 833 additions and 1128 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
import mongoose from "mongoose";
import { createTerminus } from "@godaddy/terminus";
import { getLogger } from "../utils/logger";
import { logger } from "../utils/logging";
export const setUpHealthEndpoint = <T>(server: T) => {
const onSignal = async () => {
(await getLogger("backend-main")).info("Server is starting clean-up");
logger.info("Server is starting clean-up");
return Promise.all([
new Promise((resolve) => {
if (mongoose.connection && mongoose.connection.readyState == 1) {