diff --git a/back/src/Model/GameRoom.ts b/back/src/Model/GameRoom.ts index 74849fe0..bd3e6971 100644 --- a/back/src/Model/GameRoom.ts +++ b/back/src/Model/GameRoom.ts @@ -484,7 +484,7 @@ export class GameRoom { for (const roomListener of this.roomListeners) { emitErrorOnRoomSocket( roomListener, - "Your map does not seem accessible from the WorkAdventure servers. Is it behind a firewall or a proxy? Your map should be accessible from the WorkAdventure servers. If you use the scripting API in this map, please be aware that server-side checks and variable persistence is disabled." + "Your map '"+this.mapUrl+"' does not seem accessible from the WorkAdventure servers. Is it behind a firewall or a proxy? Your map should be accessible from the WorkAdventure servers. If you use the scripting API in this map, please be aware that server-side checks and variable persistence is disabled." ); } }, 1000); diff --git a/back/src/Services/SocketManager.ts b/back/src/Services/SocketManager.ts index 5efae800..3e8baf61 100644 --- a/back/src/Services/SocketManager.ts +++ b/back/src/Services/SocketManager.ts @@ -308,7 +308,7 @@ export class SocketManager { const user = room.join(socket, joinRoomMessage); clientEventsEmitter.emitClientJoin(user.uuid, roomId); - console.log(new Date().toISOString() + " A user joined"); + console.log(new Date().toISOString() + " user '"+user.uuid+"' joined room '"+roomId+"'"); return { room, user }; } diff --git a/pusher/src/Services/SocketManager.ts b/pusher/src/Services/SocketManager.ts index 1761f1bd..40d58b64 100644 --- a/pusher/src/Services/SocketManager.ts +++ b/pusher/src/Services/SocketManager.ts @@ -166,7 +166,7 @@ export class SocketManager implements ZoneEventListener { joinRoomMessage.addCharacterlayer(characterLayerMessage); } - console.log("Calling joinRoom"); + console.log("Calling joinRoom '"+client.roomId+"' for client "+client.userUuid); const apiClient = await apiClientRepository.getClient(client.roomId); const streamToPusher = apiClient.joinRoom(); clientEventsEmitter.emitClientJoin(client.userUuid, client.roomId); @@ -194,17 +194,16 @@ export class SocketManager implements ZoneEventListener { } }) .on("end", () => { - console.warn("Connection lost to back server"); // Let's close the front connection if the back connection is closed. This way, we can retry connecting from the start. if (!client.disconnecting) { this.closeWebsocketConnection(client, 1011, "Connection lost to back server"); } - console.log("A user left"); + console.log("Closed connection for user '"+client.userUuid+"' to back server "+apiClient.getChannel().getTarget()); }) .on("error", (err: Error) => { - console.error("Error in connection to back server:", err); + console.error("Error in connection to back server '"+apiClient.getChannel().getTarget()+"':", err); if (!client.disconnecting) { - this.closeWebsocketConnection(client, 1011, "Error while connecting to back server"); + this.closeWebsocketConnection(client, 1011, "Error while connecting to back server '"+apiClient.getChannel().getTarget()+"'"); } }); @@ -353,7 +352,7 @@ export class SocketManager implements ZoneEventListener { } finally { //delete Client.roomId; clientEventsEmitter.emitClientLeave(socket.userUuid, socket.roomId); - console.log("A user left"); + console.log("User '"+socket.userUuid+"' left"); } } } finally {