Explorar o código

Don't block on writing logs

Vishnu Mohandas %!s(int64=4) %!d(string=hai) anos
pai
achega
4a988e3361
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/core/network.dart

+ 1 - 1
lib/core/network.dart

@@ -17,7 +17,7 @@ class Network {
         responseBody: true,
         logPrint: (object) {
           log(object);
-          SuperLogging.logFile.writeAsStringSync(
+          SuperLogging.logFile.writeAsString(
             object.toString() + "\n",
             encoding: Utf8Codec(allowMalformed: true),
             flush: true,