Revert "Enable avoid_print lint. (#91332)" (#91438)

This reverts commit cb378edc9e.
This commit is contained in:
Mouad Debbar
2021-10-07 16:16:17 -04:00
committed by GitHub
parent d68f95676c
commit c2ea78d231
85 changed files with 246 additions and 359 deletions

View File

@@ -51,7 +51,6 @@ typedef LoggingFunction = void Function(LogMessage log);
///
/// Exits with status code 1 if the `log` is [LoggingLevel.severe].
void defaultLoggingFunction(LogMessage log) {
// ignore: avoid_print
print('[${log.levelName}]::${log.tag}--${log.time}: ${log.message}');
if (log.level == LoggingLevel.severe) {
exit(1);