Remove debug logs
This commit is contained in:
parent
4c20bea437
commit
f52715abf3
|
@ -55,9 +55,9 @@ export class Channel extends EventEmitter {
|
||||||
|
|
||||||
if (!this.isLobby()) {
|
if (!this.isLobby()) {
|
||||||
if (set) {
|
if (set) {
|
||||||
this.logger.debug("Passed settings:", set);
|
//this.logger.debug("Passed settings:", set);
|
||||||
const validatedSet = validateChannelSettings(set);
|
const validatedSet = validateChannelSettings(set);
|
||||||
this.logger.debug("Validated settings:", validatedSet);
|
//this.logger.debug("Validated settings:", validatedSet);
|
||||||
|
|
||||||
for (const key of Object.keys(set)) {
|
for (const key of Object.keys(set)) {
|
||||||
if ((validatedSet as any)[key] === false) continue;
|
if ((validatedSet as any)[key] === false) continue;
|
||||||
|
@ -94,13 +94,13 @@ export class Channel extends EventEmitter {
|
||||||
this.logger.info("Loaded Chat History.");
|
this.logger.info("Loaded Chat History.");
|
||||||
|
|
||||||
this.on("update", () => {
|
this.on("update", () => {
|
||||||
this.logger.debug("-------- UPDATE START --------");
|
//this.logger.debug("-------- UPDATE START --------");
|
||||||
// Send updated info
|
// Send updated info
|
||||||
for (const socket of socketsBySocketID.values()) {
|
for (const socket of socketsBySocketID.values()) {
|
||||||
for (const p of this.ppl) {
|
for (const p of this.ppl) {
|
||||||
//if (socket.getParticipantID() == p.id) {
|
//if (socket.getParticipantID() == p.id) {
|
||||||
if (p.uuids.includes(socket.getUUID())) {
|
if (p.uuids.includes(socket.getUUID())) {
|
||||||
this.logger.debug("sending to", socket.getUUID())
|
//this.logger.debug("sending to", socket.getUUID())
|
||||||
socket.sendChannelUpdate(
|
socket.sendChannelUpdate(
|
||||||
this.getInfo(),
|
this.getInfo(),
|
||||||
this.getParticipantList()
|
this.getParticipantList()
|
||||||
|
@ -198,12 +198,14 @@ export class Channel extends EventEmitter {
|
||||||
if (set.owner_id) set.owner_id = undefined;
|
if (set.owner_id) set.owner_id = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
"Dreaded color2 conditions:",
|
"Dreaded color2 conditions:",
|
||||||
typeof set.color == "string",
|
typeof set.color == "string",
|
||||||
"and",
|
"and",
|
||||||
typeof set.color2 == "undefined"
|
typeof set.color2 == "undefined"
|
||||||
);
|
);
|
||||||
|
*/
|
||||||
|
|
||||||
if (
|
if (
|
||||||
typeof set.color == "string" &&
|
typeof set.color == "string" &&
|
||||||
|
@ -263,7 +265,7 @@ export class Channel extends EventEmitter {
|
||||||
public join(socket: Socket): void {
|
public join(socket: Socket): void {
|
||||||
//! /!\ Players are forced to join the same channel on two different tabs!
|
//! /!\ Players are forced to join the same channel on two different tabs!
|
||||||
//? TODO Should this be a bug or a feature?
|
//? TODO Should this be a bug or a feature?
|
||||||
this.logger.debug("join triggered");
|
//this.logger.debug("join triggered");
|
||||||
|
|
||||||
if (this.isDestroyed()) return;
|
if (this.isDestroyed()) return;
|
||||||
const part = socket.getParticipant() as Participant;
|
const part = socket.getParticipant() as Participant;
|
||||||
|
|
Loading…
Reference in New Issue