summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-03 20:23:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-03 20:23:53 +0900
commitedd1baa9f4640b72df22c0fbf0eeec3da7f01b6b (patch)
tree15d250d17fa15770c0d3cb82b2a3d74a9b22586c /src
parentRefactoring (diff)
downloadsharkey-edd1baa9f4640b72df22c0fbf0eeec3da7f01b6b.tar.gz
sharkey-edd1baa9f4640b72df22c0fbf0eeec3da7f01b6b.tar.bz2
sharkey-edd1baa9f4640b72df22c0fbf0eeec3da7f01b6b.zip
:art:
Diffstat (limited to 'src')
-rw-r--r--src/misc/logger.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/logger.ts b/src/misc/logger.ts
index 15d2c84d70..f8f7aa7324 100644
--- a/src/misc/logger.ts
+++ b/src/misc/logger.ts
@@ -33,7 +33,7 @@ export default class Logger {
}
public error(message: string | Error, important = false): void { // 実行を継続できない状況で使う
- this.log(chalk.red('ERR '), chalk.red(message.toString()), important);
+ this.log(important ? chalk.bgRed.white('ERR ') : chalk.red('ERR '), chalk.red(message.toString()), important);
}
public warn(message: string, important = false): void { // 実行を継続できるが改善すべき状況で使う
@@ -41,7 +41,7 @@ export default class Logger {
}
public succ(message: string, important = false): void { // 何かに成功した状況で使う
- this.log(chalk.green('DONE'), chalk.green(message), important);
+ this.log(important ? chalk.bgGreen.white('DONE') : chalk.green('DONE'), chalk.green(message), important);
}
public info(message: string, important = false): void { // それ以外