mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 01:35:18 -04:00
Switch to using the new custom logger
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
1a2959f6dc
commit
d7f407da2d
24 changed files with 83 additions and 34 deletions
|
@ -1,15 +1,17 @@
|
|||
import {
|
||||
Controller,
|
||||
Logger,
|
||||
Post,
|
||||
UploadedFile,
|
||||
UseInterceptors,
|
||||
} from '@nestjs/common';
|
||||
import { FileInterceptor } from '@nestjs/platform-express';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
|
||||
@Controller('media')
|
||||
export class MediaController {
|
||||
private readonly logger = new Logger(MediaController.name);
|
||||
constructor(private readonly logger: ConsoleLoggerService) {
|
||||
this.logger.setContext(MediaController.name);
|
||||
}
|
||||
|
||||
@Post('upload')
|
||||
@UseInterceptors(FileInterceptor('file'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue