Re-apply "Log Tonic errors with FML_LOG" (flutter/engine#6026)

This reverts commit 201900fd63 and updates the tonic SHA.
This commit is contained in:
Chinmay Garde
2018-08-15 14:28:24 -07:00
committed by GitHub
parent 40a93847e0
commit 4555fcca31
2 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,7 @@
#include "flutter/shell/common/vsync_waiter.h"
#include "third_party/dart/runtime/include/dart_tools_api.h"
#include "third_party/skia/include/core/SkGraphics.h"
#include "third_party/tonic/common/log.h"
#ifdef ERROR
#undef ERROR
@@ -176,6 +177,9 @@ static void PerformInitializationTasks(const blink::Settings& settings) {
fml::SetLogSettings(log_settings);
}
tonic::SetLogHandler(
[](const char* message) { FML_LOG(ERROR) << message; });
if (settings.trace_skia) {
InitSkiaEventTracer(settings.trace_skia);
}