Skip to content

Commit c18b7ff

Browse files
committed
Use print instead of stdout for logging on desktops
Writing directly to stdout is sporadically throwing exceptions on Windows
1 parent 7b82af2 commit c18b7ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/app/utils/log.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class _NativePrinter extends LoggyPrinter {
158158
class _ConsolePrinter extends LoggyPrinter {
159159
@override
160160
void onLog(LogRecord record) {
161-
stdout.writeln(_formatRecord(record));
161+
print(_formatRecord(record));
162162
}
163163
}
164164

0 commit comments

Comments
 (0)