diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-02-04 12:14:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-02-04 12:14:07 +0900 |
| commit | 4982ea8f142fd2613a29a3980e4dbe8c18675ba1 (patch) | |
| tree | f6a97a197ab6e99012ea392c962bc10cbb41bf13 /src/misc | |
| parent | Better logging (diff) | |
| download | misskey-4982ea8f142fd2613a29a3980e4dbe8c18675ba1.tar.gz misskey-4982ea8f142fd2613a29a3980e4dbe8c18675ba1.tar.bz2 misskey-4982ea8f142fd2613a29a3980e4dbe8c18675ba1.zip | |
Add --verbose option
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/logger.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/logger.ts b/src/misc/logger.ts index e086445b37..609c255849 100644 --- a/src/misc/logger.ts +++ b/src/misc/logger.ts @@ -46,7 +46,7 @@ export default class Logger { } public debug(message: string, important = false): void { // デバッグ用に使う(開発者にとっては必要だが利用者にとっては不要な情報) - if (process.env.NODE_ENV != 'production') { + if (process.env.NODE_ENV != 'production' || program.verbose) { this.log(chalk.gray('VERB'), chalk.gray(message), important); } } |