forked from FoundKeyGang/FoundKey
Merge pull request #2272 from mei23/mei-0817-debuglog
production以外のときに`npm run debug`が効かないのを修正
This commit is contained in:
commit
7a8d252f63
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ import { Config } from './config/types';
|
||||||
const clusterLog = debug('misskey:cluster');
|
const clusterLog = debug('misskey:cluster');
|
||||||
const ev = new Xev();
|
const ev = new Xev();
|
||||||
|
|
||||||
if (process.env.NODE_ENV != 'production') {
|
if (process.env.NODE_ENV != 'production' && process.env.DEBUG == null) {
|
||||||
debug.enable('misskey');
|
debug.enable('misskey');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue