From 2703da66c814abb5a48131f048aa2d47507cd0ff Mon Sep 17 00:00:00 2001 From: JannikStreek Date: Tue, 13 Feb 2024 09:22:30 +0100 Subject: [PATCH] improve logging (#11) --- src/rooms/rooms.controller.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rooms/rooms.controller.ts b/src/rooms/rooms.controller.ts index 6489f55..9f9daaf 100644 --- a/src/rooms/rooms.controller.ts +++ b/src/rooms/rooms.controller.ts @@ -24,7 +24,7 @@ export class RoomsController { @Header('content-type', 'application/octet-stream') async findOne(@Param() params, @Res() res: Response): Promise { const data = await this.storageService.get(params.id, this.namespace); - this.logger.debug(`Get room ${params.id}`); + this.logger.log(`Get room ${params.id}`); if (!data) { throw new NotFoundException(); @@ -38,11 +38,9 @@ export class RoomsController { @Put(':id') async create(@Param() params, @Body() payload: Buffer) { - console.log(payload) - console.log(params) const id = params.id; await this.storageService.set(id, payload, this.namespace); - this.logger.debug(`Created room ${id}`); + this.logger.log(`PUT room ${id}`); return { id,