We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af40c57 commit 89e9331Copy full SHA for 89e9331
source/hunt/logging/Logger.d
@@ -436,11 +436,17 @@ class Logger
436
try
437
send(_tid, msg);
438
catch (Exception ex) {
439
- collectException( {
440
- write(PRINT_COLOR_RED);
+ version(Posix) {
+ collectException( {
441
+ write(PRINT_COLOR_RED);
442
+ write(ex);
443
+ writeln(PRINT_COLOR_NONE);
444
+ }());
445
+ } else {
446
447
write(ex);
- writeln(PRINT_COLOR_NONE);
448
}());
449
+ }
450
}
451
452
@@ -688,6 +694,7 @@ protected:
688
694
689
695
690
696
} else version (Windows) {
697
+ import hunt.system.WindowsHelper;
691
698
enum defaultColor = FOREGROUND_GREEN | FOREGROUND_RED | FOREGROUND_BLUE;
692
699
693
700
ushort color;
0 commit comments