mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Improve log
This commit is contained in:
parent
64610b22f1
commit
abe215aee0
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ void initLog() {
|
|||
Logger.root.level = Level.ALL;
|
||||
Logger.root.onRecord.listen((record) {
|
||||
String msg =
|
||||
"[${record.loggerName}] ${record.level.name}: ${record.message}";
|
||||
"[${record.loggerName}] ${record.level.name} ${record.time}: ${record.message}";
|
||||
if (record.error != null) {
|
||||
msg += " (throw: ${record.error.runtimeType} { ${record.error} })";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue