Skip to content

Commit

Permalink
log cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Feb 18, 2021
1 parent 780bbfe commit 7cb8324
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ export function SearchSessionsProvider({ getService }: FtrProviderContext) {
.expect(200);

const { saved_objects: savedObjects } = body as SavedObjectsFindResponse;
log.debug(`Found created search sessions: ${savedObjects.map(({ id }) => id)}`);
if (savedObjects.length) {
log.debug(`Found created search sessions: ${savedObjects.map(({ id }) => id)}`);
}
await Promise.all(
savedObjects.map(async (so) => {
log.debug(`Deleting search session: ${so.id}`);
Expand Down

0 comments on commit 7cb8324

Please sign in to comment.