Skip to content

Commit

Permalink
[backend] More logging in the elLoadIds
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Jan 29, 2025
1 parent d27e61b commit 3fbff92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opencti-platform/opencti-graphql/src/database/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,7 @@ export const elFindByIds = async (context, user, ids, opts = {}) => {
logApp.debug('[SEARCH] elInternalLoadById', { query });
const searchType = `${ids} (${types ? types.join(', ') : 'Any'})`;
const data = await elRawSearch(context, user, searchType, query).catch((err) => {
logApp.error(JSON.stringify(query));
throw DatabaseError('Find direct ids fail', { cause: err, query });
});
const elements = data.hits.hits;
Expand Down

0 comments on commit 3fbff92

Please sign in to comment.