From a3d80686b46198fc440dc822a4c2d9fc05dfeaa0 Mon Sep 17 00:00:00 2001 From: Tobe Osakwe Date: Wed, 6 Feb 2019 16:59:05 -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'),