mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Update tests
This commit is contained in:
parent
97799f5f1b
commit
9cf061ad8e
1 changed files with 15 additions and 0 deletions
|
@ -162,6 +162,21 @@ void initLog() {
|
|||
if (record.stackTrace != null) {
|
||||
msg += "\nStack Trace:\n${record.stackTrace}";
|
||||
}
|
||||
|
||||
int color;
|
||||
if (record.level >= Level.SEVERE) {
|
||||
color = 91;
|
||||
} else if (record.level >= Level.WARNING) {
|
||||
color = 33;
|
||||
} else if (record.level >= Level.INFO) {
|
||||
color = 34;
|
||||
} else if (record.level >= Level.FINER) {
|
||||
color = 32;
|
||||
} else {
|
||||
color = 90;
|
||||
}
|
||||
msg = "\x1B[${color}m$msg\x1B[0m";
|
||||
|
||||
debugPrint(msg);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue