mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-24 16:04:43 +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) {
|
if (record.stackTrace != null) {
|
||||||
msg += "\nStack Trace:\n${record.stackTrace}";
|
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);
|
debugPrint(msg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue