From cd6a6738c288329c4599b04e2728139e23226716 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 24 Sep 2022 10:45:42 +0900 Subject: [PATCH] fix --- packages/backend/src/postgre.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/postgre.ts b/packages/backend/src/postgre.ts index 4da55d7c3..2beb31e24 100644 --- a/packages/backend/src/postgre.ts +++ b/packages/backend/src/postgre.ts @@ -2,7 +2,7 @@ import pg from 'pg'; pg.types.setTypeParser(20, Number); -import { DataSource } from 'typeorm'; +import { DataSource, Logger } from 'typeorm'; import * as highlight from 'cli-highlight'; import { entities as charts } from '@/core/chart/entities.js'; @@ -71,10 +71,10 @@ import { Webhook } from '@/models/entities/Webhook.js'; import { Channel } from '@/models/entities/Channel.js'; import { Config } from '@/config.js'; -import Logger from '@/logger.js'; +import MisskeyLogger from '@/logger.js'; import { envOption } from './env.js'; -export const dbLogger = new Logger('db'); +export const dbLogger = new MisskeyLogger('db'); const sqlLogger = dbLogger.createSubLogger('sql', 'gray', false);