mirror of
https://github.com/immich-app/immich.git
synced 2026-03-04 09:57:33 +03: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:
@@ -338,7 +338,7 @@ export class StorageTemplateService extends BaseService {
|
||||
|
||||
return destination;
|
||||
} catch (error: any) {
|
||||
this.logger.error(`Unable to get template path for ${filename}`, error);
|
||||
this.logger.error(`Unable to get template path for ${filename}: ${error}`);
|
||||
return asset.originalPath;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user