From 6aaa14da76f7db5dc07bdc5781a2feb85a9ae92c Mon Sep 17 00:00:00 2001 From: pedrocx486 Date: Tue, 28 Jan 2025 00:08:00 -0300 Subject: [PATCH] Update texts --- client/.env | 2 +- server/src/server.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/.env b/client/.env index a7c8752..2b0966a 100644 --- a/client/.env +++ b/client/.env @@ -1,4 +1,4 @@ # If the client is being served by the server itself, set to TRUE. -# If you're serving this from a CDN, set to FALSE and update the SERVER variable to point to the server URL. +# If you're running locally in dev mode, set to FALSE and update the SERVER variable to point to the server URL. VITE_STATIC='true' VITE_SERVER='http://localhost:3000' diff --git a/server/src/server.ts b/server/src/server.ts index a600273..a1ada26 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -205,7 +205,7 @@ app.post('/createPartyLine', [ lastActivity: Date.now() }; - console.log(`CREATE: Created party line: ${currentPartyLine}`); + console.log(`CREATE: { partyLine: ${currentPartyLine} }`); res.status(200).send({ status: 'Party line created', currentPartyLine }); } catch (error) { console.error('ERROR: Failed to create party line', error); @@ -229,7 +229,7 @@ app.post('/rumor', [ return res.status(404).send({ status: 'Party line not found' }); } - console.log(`RECEIVE: Received rumor for party line ${connectedPartyLine}: ${rumor}`); + console.log(`RECEIVE: { partyLine: ${connectedPartyLine}, rumor: ${rumor} }`); // Update the last event and broadcast it to all clients partyLine.lastEvent = rumor; @@ -275,7 +275,7 @@ app.delete('/deletePartyLine', [ // Delete the party line delete partyLines[currentPartyLine]; - console.log(`DELETE: Deleted party line: ${currentPartyLine}`); + console.log(`DELETE: { partyLine: ${currentPartyLine} }`); res.status(200).send({ status: 'Party line deleted', currentPartyLine }); } catch (error) { console.error('ERROR: Failed to delete party line', error); @@ -288,6 +288,6 @@ app.listen(PORT, () => { console.log(`Rumor Party Line`); console.log(`Internally running on http://localhost:${PORT} in ${process.env.ENVIRONMENT} mode.`); if (process.env.DOCKER) { - console.log(`You're running on Docker! \nCheck your external port in the compose file to avoid confusion!`); + console.log(`You're running on Docker!\n↳ Check your external port in the compose file to avoid confusion!`); } }); \ No newline at end of file