Skip to content

Commit

Permalink
Remove superfluous INFO logs from //flutter/runtime. (flutter#16280)
Browse files Browse the repository at this point in the history
These add no value to engine developers anymore and are not visible to external
users because of the low log severity.
  • Loading branch information
chinmaygarde authored and NoamDev committed Feb 27, 2020
1 parent 01a7086 commit aa78c13
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 22 deletions.
12 changes: 0 additions & 12 deletions runtime/dart_isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ bool DartIsolate::Run(const std::string& entrypoint_name,
}

phase_ = Phase::Running;
FML_DLOG(INFO) << "New isolate is in the running state.";

if (on_run) {
on_run();
Expand Down Expand Up @@ -540,7 +539,6 @@ bool DartIsolate::RunFromLibrary(const std::string& library_name,
}

phase_ = Phase::Running;
FML_DLOG(INFO) << "New isolate is in the running state.";

if (on_run) {
on_run();
Expand Down Expand Up @@ -588,7 +586,6 @@ Dart_Isolate DartIsolate::DartCreateAndStartServiceIsolate(
const auto& settings = vm_data->GetSettings();

if (!settings.enable_observatory) {
FML_DLOG(INFO) << "Observatory is disabled.";
return nullptr;
}

Expand Down Expand Up @@ -834,19 +831,13 @@ void DartIsolate::DartIsolateShutdownCallback(
std::shared_ptr<DartIsolateGroupData>* isolate_group_data,
std::shared_ptr<DartIsolate>* isolate_data) {
TRACE_EVENT0("flutter", "DartIsolate::DartIsolateShutdownCallback");
FML_DLOG(INFO) << "DartIsolateShutdownCallback"
<< " isolate_group_data " << isolate_group_data
<< " isolate_data " << isolate_data;
isolate_data->get()->OnShutdownCallback();
}

// |Dart_IsolateGroupCleanupCallback|
void DartIsolate::DartIsolateGroupCleanupCallback(
std::shared_ptr<DartIsolateGroupData>* isolate_data) {
TRACE_EVENT0("flutter", "DartIsolate::DartIsolateGroupCleanupCallback");
FML_DLOG(INFO) << "DartIsolateGroupCleanupCallback isolate_data "
<< isolate_data;

delete isolate_data;
}

Expand All @@ -855,9 +846,6 @@ void DartIsolate::DartIsolateCleanupCallback(
std::shared_ptr<DartIsolateGroupData>* isolate_group_data,
std::shared_ptr<DartIsolate>* isolate_data) {
TRACE_EVENT0("flutter", "DartIsolate::DartIsolateCleanupCallback");

FML_DLOG(INFO) << "DartIsolateCleanupCallback cleaned up isolate_data "
<< isolate_data;
delete isolate_data;
}

Expand Down
1 change: 0 additions & 1 deletion runtime/dart_isolate_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class AutoIsolateShutdown {
fml::AutoResetWaitableEvent latch;
fml::TaskRunner::RunNowOrPostTask(
runner_, [isolate = std::move(isolate_), &latch]() {
FML_LOG(INFO) << "Shutting down isolate.";
if (!isolate->Shutdown()) {
FML_LOG(ERROR) << "Could not shutdown isolate.";
FML_CHECK(false);
Expand Down
9 changes: 0 additions & 9 deletions runtime/dart_vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,6 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
FML_DCHECK(isolate_name_server_);
FML_DCHECK(service_protocol_);

FML_DLOG(INFO) << "Attempting Dart VM launch for mode: "
<< (IsRunningPrecompiledCode() ? "AOT" : "Interpreter");

{
TRACE_EVENT0("flutter", "dart::bin::BootstrapDartIo");
dart::bin::BootstrapDartIo();
Expand Down Expand Up @@ -456,9 +453,6 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
Dart_SetDartLibrarySourcesKernel(dart_library_sources->GetMapping(),
dart_library_sources->GetSize());
}

FML_DLOG(INFO) << "New Dart VM instance created. Instance count: "
<< gVMLaunchCount;
}

DartVM::~DartVM() {
Expand All @@ -478,9 +472,6 @@ DartVM::~DartVM() {
<< "Could not cleanly shut down the Dart VM. Error: \"" << result
<< "\".";
free(result);

FML_DLOG(INFO) << "Dart VM instance destroyed. Instance count: "
<< gVMLaunchCount;
}

std::shared_ptr<const DartVMData> DartVM::GetVMData() const {
Expand Down

0 comments on commit aa78c13

Please sign in to comment.