diff --git a/lib/debug_util.dart b/lib/debug_util.dart index 29095d82..e5f632d4 100644 --- a/lib/debug_util.dart +++ b/lib/debug_util.dart @@ -40,6 +40,7 @@ class LogCapturer { static LogCapturer? _inst; } -String logFilename(String? filename) => shouldLogFileName ? "$filename" : "***"; +String logFilename(String? filename) => + shouldLogFileName || filename == null ? "$filename" : "***"; const bool shouldLogFileName = kDebugMode;