Merge pull request #2272 from mei23/mei-0817-debuglog

production以外のときに`npm run debug`が効かないのを修正
This commit is contained in:
syuilo 2018-08-17 04:04:18 +09:00 committed by GitHub
commit 7a8d252f63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}