Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bb269c2

Browse files
committed
Log Tonic errors with FML_LOG
1 parent ea07f27 commit bb269c2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ deps = {
123123
# and not have to specific specific hashes.
124124

125125
'src/third_party/tonic':
126-
Var('fuchsia_git') + '/tonic' + '@' + '57d508b12462db686573edcbc97891d90cf92f90',
126+
Var('fuchsia_git') + '/tonic' + '@' + '2de0ba78507e764f908b195885f53592048b7c45',
127127

128128
'src/third_party/benchmark':
129129
Var('fuchsia_git') + '/third_party/benchmark' + '@' + '296537bc48d380adf21567c5d736ab79f5363d22',

shell/common/shell.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "flutter/shell/common/vsync_waiter.h"
2929
#include "third_party/dart/runtime/include/dart_tools_api.h"
3030
#include "third_party/skia/include/core/SkGraphics.h"
31+
#include "third_party/tonic/common/log.h"
3132

3233
#ifdef ERROR
3334
#undef ERROR
@@ -176,6 +177,10 @@ static void PerformInitializationTasks(const blink::Settings& settings) {
176177
fml::SetLogSettings(log_settings);
177178
}
178179

180+
tonic::SetLogHandler([](const char* message) {
181+
FML_LOG(ERROR) << message;
182+
});
183+
179184
if (settings.trace_skia) {
180185
InitSkiaEventTracer(settings.trace_skia);
181186
}

0 commit comments

Comments
 (0)