From 64553e8809271df1113e9143426a27f234410a74 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Oct 2021 14:23:32 +0200 Subject: Add ability to filter logs by tags --- shared/extra-utils/logs/logs-command.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'shared') diff --git a/shared/extra-utils/logs/logs-command.ts b/shared/extra-utils/logs/logs-command.ts index 5912e814f..7b5c66c0c 100644 --- a/shared/extra-utils/logs/logs-command.ts +++ b/shared/extra-utils/logs/logs-command.ts @@ -8,15 +8,16 @@ export class LogsCommand extends AbstractCommand { startDate: Date endDate?: Date level?: LogLevel + tagsOneOf?: string[] }) { - const { startDate, endDate, level } = options + const { startDate, endDate, tagsOneOf, level } = options const path = '/api/v1/server/logs' - return this.getRequestBody({ + return this.getRequestBody({ ...options, path, - query: { startDate, endDate, level }, + query: { startDate, endDate, level, tagsOneOf }, implicitToken: true, defaultExpectedStatus: HttpStatusCode.OK_200 }) -- cgit v1.2.3