Browse Source

fix(core): Improve error logging when search indexing fails

Relates to #1556
Michael Bromley 3 years ago
parent
commit
bf751719b7

+ 1 - 1
packages/core/src/plugin/default-search-plugin/indexer/search-index.service.ts

@@ -159,7 +159,7 @@ export class SearchIndexService implements OnApplicationBootstrap {
                     });
                 },
                 error: (err: any) => {
-                    Logger.error(JSON.stringify(err));
+                    Logger.error(err.message || JSON.stringify(err), undefined, err.stack);
                     reject(err);
                 },
             });