mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 17:26:29 -05:00
4d50f2ec33
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> |
||
---|---|---|
.. | ||
api | ||
auth | ||
authors | ||
config | ||
errors | ||
frontend-config | ||
groups | ||
history | ||
identity | ||
logger | ||
media | ||
monitoring | ||
notes | ||
permissions | ||
realtime | ||
revisions | ||
session | ||
users | ||
utils | ||
app-init.ts | ||
app.module.ts | ||
events.ts | ||
main.ts | ||
seed.ts |