dart_runtime_hooks: revert to syslog() call (flutter/engine#3484)

Fixes buildbot error use of undeclared identifier 'asl_log_message',
which I'm unable to repro locally.
This commit is contained in:
Chris Bracken
2017-03-16 19:09:39 -07:00
committed by GitHub
parent b4f50b27ce
commit c7a35cdc80

View File

@@ -28,7 +28,10 @@
#endif
#if __APPLE__
#include <asl.h>
extern "C" {
// Cannot import the syslog.h header directly because of macro collision
extern void syslog(int, const char*, ...);
}
#endif
using tonic::LogIfError;
@@ -154,7 +157,7 @@ void Logger_PrintString(Dart_NativeArguments args) {
__android_log_print(ANDROID_LOG_INFO, tag, "%.*s", (int)length,
chars);
#elif __APPLE__
asl_log_message(ASL_LEVEL_NOTICE, "%.*s", (int)length, chars);
syslog(1 /* LOG_ALERT */, "%.*s", (int)length, chars);
#endif
}
if (dart::bin::ShouldCaptureStdout()) {