Update dev.dart

This commit is contained in:
Tobe O 2018-07-11 09:42:51 -04:00 committed by GitHub
parent 0389803641
commit 6497b16e07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ main() async {
var hot = new HotReloader(() async { var hot = new HotReloader(() async {
var app = new Angel()..lazyParseBodies = true; var app = new Angel()..lazyParseBodies = true;
await app.configure(configureServer); await app.configure(configureServer);
hierarchicalLoggingEnabled = true;
app.logger = new Logger('angel'); app.logger = new Logger('angel');
var sub = app.logger.onRecord.listen(prettyLog); var sub = app.logger.onRecord.listen(prettyLog);
app.shutdownHooks.add((_) => sub.cancel()); app.shutdownHooks.add((_) => sub.cancel());