Skip to content

Commit

Permalink
improve logging (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek authored Feb 13, 2024
1 parent d545b89 commit 2703da6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/rooms/rooms.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class RoomsController {
@Header('content-type', 'application/octet-stream')
async findOne(@Param() params, @Res() res: Response): Promise<void> {
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();
Expand All @@ -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,
Expand Down

0 comments on commit 2703da6

Please sign in to comment.