diff --git a/engine/src/flutter/lib/ui/dart_runtime_hooks.cc b/engine/src/flutter/lib/ui/dart_runtime_hooks.cc index 000c4c4372..662d2d6311 100644 --- a/engine/src/flutter/lib/ui/dart_runtime_hooks.cc +++ b/engine/src/flutter/lib/ui/dart_runtime_hooks.cc @@ -154,7 +154,7 @@ void DartRuntimeHooks::Install(bool is_ui_isolate, } void Logger_PrintDebugString(Dart_NativeArguments args) { -#if FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_DEBUG +#ifndef NDEBUG Logger_PrintString(args); #endif }