From d84c0fb2d45bb543cc1154fac95feb6539943620 Mon Sep 17 00:00:00 2001 From: unknown <89595418+unknownsrc@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:06:58 +0200 Subject: [PATCH] updating logging --- controller/websocket.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/websocket.js b/controller/websocket.js index 3544202..a793026 100644 --- a/controller/websocket.js +++ b/controller/websocket.js @@ -14,7 +14,7 @@ const { PrismaClient } = require('@prisma/client') const prisma = new PrismaClient() exports.save = async (ws, req) => { - logger.info({ message: `${req.path} ${JSON.stringify(req.query)} ${JSON.stringify(req.headers)}` }) + logger.info({ message: `${req.path} ${JSON.stringify(req.query)}` }) const id = await validate.validateVideoInput(req.query.url) if (id.fail) { @@ -87,7 +87,7 @@ exports.save = async (ws, req) => { } exports.playlist = async (ws, req) => { - logger.info({ message: `${req.path} ${JSON.stringify(req.query)} ${JSON.stringify(req.headers)}` }) + logger.info({ message: `${req.path} ${JSON.stringify(req.query)}` }) const playlistId = await validate.validatePlaylistInput(req.query.url) if (playlistId.fail) { @@ -182,7 +182,7 @@ exports.playlist = async (ws, req) => { } exports.channel = async (ws, req) => { - logger.info({ message: `${req.path} ${JSON.stringify(req.query)} ${JSON.stringify(req.headers)}` }) + logger.info({ message: `${req.path} ${JSON.stringify(req.query)}` }) const channelId = await validate.validateChannelInput(req.query.url) if (channelId.fail) {