mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-10 12:46:37 +00:00
Quite log messages
This commit is contained in:
@@ -55,9 +55,9 @@ const processMessage = async (
|
|||||||
try {
|
try {
|
||||||
const message: WSMessage = JSON.parse(data.toString());
|
const message: WSMessage = JSON.parse(data.toString());
|
||||||
|
|
||||||
logger.debug(
|
// logger.debug(
|
||||||
`Processing message from ${clientType.toUpperCase()} ID: ${clientId}, type: ${message.type}`
|
// `Processing message from ${clientType.toUpperCase()} ID: ${clientId}, type: ${message.type}`
|
||||||
);
|
// );
|
||||||
|
|
||||||
if (!message.type || typeof message.type !== "string") {
|
if (!message.type || typeof message.type !== "string") {
|
||||||
throw new Error("Invalid message format: missing or invalid type");
|
throw new Error("Invalid message format: missing or invalid type");
|
||||||
|
|||||||
Reference in New Issue
Block a user