mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(server): proper log context formatting (#22173)
* Fix log formatting for logger.error(..., error) Rewrite it to avoid printing error msg in [context] * Fix log formatting for logger.warn(..., error?.stack) Rewrite it to avoid printing stack in [context] * Fix log formatting for logger.debug(..., error.message); Rewrite it to avoid printing error msg in [context] * Print error msg instead of literal "Error"
This commit is contained in:
parent
b8a17c3c26
commit
78516a97b3
9 changed files with 15 additions and 15 deletions
|
|
@ -73,7 +73,7 @@ export const sendFile = async (
|
|||
|
||||
// log non-http errors
|
||||
if (error instanceof HttpException === false) {
|
||||
logger.error(`Unable to send file: ${error.name}`, error.stack);
|
||||
logger.error(`Unable to send file: ${error}`, error.stack);
|
||||
}
|
||||
|
||||
res.header('Cache-Control', 'none');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue