1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

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.
This commit is contained in:
Fredrik Strand Oseberg 2024-03-19 14:45:27 +01:00 committed by GitHub
parent bb847e2935
commit 911b918817
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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<void> {
const custom = {