hedgedoc/backend
David Mehren 4d50f2ec33 fix(backend): immediately use our custom logger
While the DI and database initialization is running, NestJSs default logger is normally used. Our custom logger was only being initialized after DI setup is complete.
Errors encountered during DI setup were buffered and only printed after DI init was complete, or the app exited on error.
This led to the app not printing anything for a minute in certain cases.

This commit replaces the initial logger with our ConsoleLoggerService that logs everything.
After DI init is complete, that logger is replaced with a normal instance of ConsoleLoggerService that uses the real config from DI.

Fixes https://github.com/hedgedoc/hedgedoc/issues/4306

Signed-off-by: David Mehren <git@herrmehren.de>
2023-06-25 21:49:01 +02:00
..
docker chore(deps): update node.js to 77516e1 2023-06-22 05:01:55 +00:00
public fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
src fix(backend): immediately use our custom logger 2023-06-25 21:49:01 +02:00
test fix: replace RouterModule from nest-router with @nestjs/core 2023-06-16 23:00:06 +02:00
.editorconfig fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
.env fix: add .env file symlinks 2023-04-13 10:39:17 +02:00
.eslintrc.js build: add eslint rule forbidding TypeORM Equal constructor 2023-03-25 16:29:14 +01:00
.gitignore fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
.prettierrc.json feat(package): adjust packages to workspaces 2022-12-04 20:59:46 +01:00
.prettierrc.json.license feat(package): adjust packages to workspaces 2022-12-04 20:59:46 +01:00
CHANGELOG.md fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
jest-e2e.json fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
jest-e2e.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
nest-cli.json fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
nest-cli.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
package.json chore(deps): update dependency @types/node to v20.3.1 2023-06-25 14:44:47 +02:00
package.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
tsconfig.build.json fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
tsconfig.build.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
tsconfig.json fix(backend): keep log output in dev mode 2023-03-28 11:34:05 +02:00
tsconfig.json.license fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00