hedgedoc/backend/src
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
..
api feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
auth feat: increased test coverage for authService 2023-06-21 14:07:00 +02:00
authors fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
config fix(media config): expect HD_MEDIA_BACKEND_S3_ENDPOINT to be an uri 2023-04-16 18:41:03 +02:00
errors enhancement(auth): better error message handling 2023-03-26 15:43:39 +02:00
frontend-config refactor(default-access-level): rename from default-access-permission 2023-02-12 20:42:10 +01:00
groups fix(repository): Move backend code into subdirectory 2022-10-30 22:46:42 +01:00
history fix: improve and adjust tests 2023-06-20 11:44:38 +02:00
identity feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
logger fix: migrate import code 2023-05-12 19:14:34 +02:00
media feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
monitoring feat(apidocs): use real version number 2023-01-15 18:20:25 +01:00
notes fix: improve and adjust tests 2023-06-20 11:44:38 +02:00
permissions test: add test for permissions guard 2023-05-19 19:10:45 +02:00
realtime fix: save created revision on realtime note destroy 2023-06-21 14:17:25 +02:00
revisions fix: save created revision on realtime note destroy 2023-06-21 14:17:25 +02:00
session feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
users feat(backend): handle username always in lowercase 2023-06-04 21:55:19 +02:00
utils test: improve select query mock builder 2023-06-20 11:44:38 +02:00
app-init.ts misc(apidocs): move URL route of API docs 2023-01-15 18:20:25 +01:00
app.module.ts fix: replace RouterModule from nest-router with @nestjs/core 2023-06-16 23:00:06 +02:00
events.ts feat: add patch to add generic types to eventemitter2 2023-02-09 21:58:41 +01:00
main.ts fix(backend): immediately use our custom logger 2023-06-25 21:49:01 +02:00
seed.ts fix: adjust seeding to new revision create signature 2023-06-20 11:44:38 +02:00