1
0
Fork 1
mirror of https://example.com synced 2024-11-25 08:16:37 +09:00

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

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