Index: runtime/bin/log_android.cc |
diff --git a/runtime/bin/log_android.cc b/runtime/bin/log_android.cc |
index 7f68d686097ac21e985e8cb12575ddf33b53519f..42a67556638d4613867711e3d2c505ddbc302c68 100644 |
--- a/runtime/bin/log_android.cc |
+++ b/runtime/bin/log_android.cc |
@@ -21,6 +21,7 @@ void Log::VPrint(const char* format, va_list args) { |
// (critical ones or not) if we print them to stdout/stderr. |
// We also log using android's logging system. |
vprintf(format, args); |
+ fflush(stdout); |
__android_log_vprint(ANDROID_LOG_INFO, "Dart", format, args); |
} |
@@ -29,6 +30,7 @@ void Log::VPrintErr(const char* format, va_list args) { |
// (critical ones or not) if we print them to stdout/stderr. |
// We also log using android's logging system. |
vfprintf(stderr, format, args); |
+ fflush(stderr); |
__android_log_vprint(ANDROID_LOG_ERROR, "Dart", format, args); |
} |