Skip to content

Commit

Permalink
fix: set log level to error for db migrate (#6601)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
FredrikOseberg committed Mar 19, 2024
1 parent bb847e2 commit 911b918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrator.ts
Expand Up @@ -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 = {
Expand Down

0 comments on commit 911b918

Please sign in to comment.