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> |
||
---|---|---|
.. | ||
docker | ||
public | ||
src | ||
test | ||
.editorconfig | ||
.env | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc.json | ||
.prettierrc.json.license | ||
CHANGELOG.md | ||
jest-e2e.json | ||
jest-e2e.json.license | ||
nest-cli.json | ||
nest-cli.json.license | ||
package.json | ||
package.json.license | ||
tsconfig.build.json | ||
tsconfig.build.json.license | ||
tsconfig.json | ||
tsconfig.json.license |