From 014c07a89fdd287c20aeb7a34e442a505b960ab2 Mon Sep 17 00:00:00 2001 From: Tobe Osakwe Date: Wed, 6 Feb 2019 16:57:53 -0500 Subject: [PATCH] Update dev.dart --- bin/dev.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/dev.dart b/bin/dev.dart index 9ea61b0..a6339bf 100644 --- a/bin/dev.dart +++ b/bin/dev.dart @@ -12,9 +12,8 @@ main() async { var app = new Angel(reflector: MirrorsReflector()); await app.configure(configureServer); hierarchicalLoggingEnabled = true; - app.logger = new Logger('angel'); - var sub = app.logger.onRecord.listen(prettyLog); - app.shutdownHooks.add((_) => sub.cancel()); + app.logger = new Logger.detached('{{angel}}')..onRecord.listen(prettyLog); + app.shutdownHooks.add((_) => app.logger.clearListeners()); return app; }, [ new Directory('config'),