From 8dd3a3d7dd72a8d183db81f9a8ee37f4d02b4faa Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Fri, 2 Apr 2021 17:40:44 +0200 Subject: [PATCH] Logging: Add OpenAPI log messages Let the user know where the OpenAPI docs can be found. Signed-off-by: Philip Molares --- src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.ts b/src/main.ts index 324c254f3..98555016c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,8 +25,16 @@ async function bootstrap(): Promise { const mediaConfig = configService.get('mediaConfig'); setupPublicApiDocs(app); + logger.log( + `Serving OpenAPI docs for public api under '/apidoc'`, + 'AppBootstrap', + ); if (process.env.NODE_ENV === 'development') { setupPrivateApiDocs(app); + logger.log( + `Serving OpenAPI docs for private api under '/private/apidoc'`, + 'AppBootstrap', + ); } app.useGlobalPipes(