Skip to content

Commit

Permalink
dart_runtime_hooks: revert to syslog() call (flutter#3484)
Browse files Browse the repository at this point in the history
Fixes buildbot error use of undeclared identifier 'asl_log_message',
which I'm unable to repro locally.
  • Loading branch information
cbracken authored Mar 17, 2017
1 parent 24d9d25 commit 4a5a324
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/ui/dart_runtime_hooks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit 4a5a324

Please sign in to comment.