From 0c55723b04d5812d544a7b54faee4779b8e1870f Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Thu, 29 Dec 2022 10:00:10 -0500 Subject: [PATCH] Add logging prints for real builds --- lib/main.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 2880c8d..506810e 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -26,12 +26,12 @@ void main() async { await dotenv.load(fileName: '.env'); Logger.root.level = Level.FINER; - // Logger.root.onRecord.listen((event) { - // final logName = event.loggerName.isEmpty ? 'ROOT' : event.loggerName; - // final msg = - // '${event.level.name} - $logName @ ${event.time}: ${event.message}'; - // print(msg); - // }); + Logger.root.onRecord.listen((event) { + final logName = event.loggerName.isEmpty ? 'ROOT' : event.loggerName; + final msg = + '${event.level.name} - $logName @ ${event.time}: ${event.message}'; + print(msg); + }); final authService = AuthService(); final secretsService = SecretsService();