From 17de8b454c72703b3a7259c04c01734f9763b780 Mon Sep 17 00:00:00 2001 From: mei23 Date: Fri, 17 Aug 2018 03:51:42 +0900 Subject: [PATCH] Fix `npm run debug` not working --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c2994c606..880bb5a45 100644 --- a/src/index.ts +++ b/src/index.ts @@ -28,7 +28,7 @@ import { Config } from './config/types'; const clusterLog = debug('misskey:cluster'); const ev = new Xev(); -if (process.env.NODE_ENV != 'production') { +if (process.env.NODE_ENV != 'production' && process.env.DEBUG == null) { debug.enable('misskey'); }