Unverified Commit 5e77083b authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] make parent logger optional (#59786)

The addition of the non-optional parent logger broke the google3 roll. Make it optional so we can roll
parent d4e1448b
......@@ -918,7 +918,7 @@ dynamic _toJsonable(dynamic obj) {
}
class NotifyingLogger extends Logger {
NotifyingLogger({ @required this.verbose, @required this.parent }) {
NotifyingLogger({ @required this.verbose, this.parent }) {
_messageController = StreamController<LogMessage>.broadcast(
onListen: _onListen,
);
......@@ -969,7 +969,7 @@ class NotifyingLogger extends Logger {
if (!verbose) {
return;
}
parent.printError(message);
parent?.printError(message);
}
@override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment