Log to stdout on all platforms except Android (flutter/engine#3739)
Fixes a Fuchsia breakage introduced in
710df81249.
This commit is contained in:
@@ -143,11 +143,11 @@ void Logger_PrintString(Dart_NativeArguments args) {
|
||||
// Write to the logcat on Android.
|
||||
const char* tag = Settings::Get().log_tag.c_str();
|
||||
__android_log_print(ANDROID_LOG_INFO, tag, "%.*s", (int)length, chars);
|
||||
#elif defined(__APPLE__) || defined(OS_LINUX)
|
||||
// On iOS and in flutter_tester (on both macOS and Linux, write directly to
|
||||
// stdout. On iOS, this is redirected to ASL via
|
||||
#else
|
||||
// On Fuchsia, iOS and in flutter_tester (on both macOS and Linux), write
|
||||
// directly to stdout. On iOS, this is redirected to ASL via
|
||||
// RedirectIOConnectionsToSyslog in platform_mac.mm.
|
||||
// TODO(cbracken) replace with dedicated (non-stdout) logging on iOS.
|
||||
// TODO(cbracken): replace with dedicated (non-stdout) logging on iOS.
|
||||
fwrite(chars, 1, length, stdout);
|
||||
fputs("\n", stdout);
|
||||
fflush(stdout);
|
||||
|
||||
Reference in New Issue
Block a user