From 911b918817e73576c726ce723d7d4c4eb4c74b53 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Tue, 19 Mar 2024 14:45:27 +0100 Subject: [PATCH] fix: set log level to error for db migrate (#6601) This PR sets the log level of db-migrate to error, because it interferes with the indexing of our logs in Loki when the logs are not in JSON format. --- src/migrator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrator.ts b/src/migrator.ts index 17a35737191..0979435729d 100644 --- a/src/migrator.ts +++ b/src/migrator.ts @@ -3,7 +3,7 @@ import { getInstance } from 'db-migrate'; import type { IUnleashConfig } from './lib/types/option'; import { secondsToMilliseconds } from 'date-fns'; -log.setLogLevel('info'); +log.setLogLevel('error'); export async function migrateDb({ db }: IUnleashConfig): Promise { const custom = {