提交 4a5a3246 编写于 作者: C Chris Bracken 提交者: GitHub

dart_runtime_hooks: revert to syslog() call (#3484)

Fixes buildbot error use of undeclared identifier 'asl_log_message',
which I'm unable to repro locally.
上级 24d9d253
......@@ -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()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册