Skip to content

Commit

Permalink
fix(*): cleanup logs (#2790)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrappachc authored Feb 5, 2024
1 parent edfe929 commit 92e559b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/game-servers/services/game-servers.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export class GameServersService
},
},
});
this.logger.log(
this.logger.verbose(
`using gameserver ${game.gameServer!.name} for game #${game.number}`,
);

Expand Down
2 changes: 1 addition & 1 deletion src/games/services/game-logs.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class GameLogsService {
throw new Error(`game #${game.number} has no log secret`);
}

this.logger.log(`uploading logs for game #${game.number}...`);
this.logger.verbose(`uploading logs for game #${game.number}...`);

try {
const logFile = await this.getLogs(game.logSecret);
Expand Down
2 changes: 1 addition & 1 deletion src/games/services/games.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export class GamesService {
)._id;

const game = await this.getById(id);
this.logger.debug(`game #${game.number} created`);
this.logger.log(`game #${game.number} created`);
this.events.gameCreated.next({ game });

await Promise.all(
Expand Down
4 changes: 2 additions & 2 deletions src/voice-servers/mumble-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class MumbleBot {
];
if (red && blu) {
await red.link(blu);
this.logger.log(`channels for game #${game.number} linked`);
this.logger.verbose(`channels for game #${game.number} linked`);
} else {
throw new Error('BLU or RED subchannel does not exist');
}
Expand Down Expand Up @@ -155,7 +155,7 @@ export class MumbleBot {
}

await channel.remove();
this.logger.log(`channel ${channel.name} removed`);
this.logger.verbose(`channel ${channel.name} removed`);
} catch (error) {
assertIsError(error);
this.logger.error(
Expand Down

0 comments on commit 92e559b

Please sign in to comment.