From 7985de9c4ea72551ead5f2cca5c387f7119f067b Mon Sep 17 00:00:00 2001 From: Tobe O Date: Fri, 20 Oct 2017 10:39:56 -0400 Subject: [PATCH] Logging update --- lib/src/pretty_logging.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/pretty_logging.dart b/lib/src/pretty_logging.dart index a0ba5f88..76020997 100644 --- a/lib/src/pretty_logging.dart +++ b/lib/src/pretty_logging.dart @@ -2,15 +2,15 @@ import 'package:console/console.dart'; import 'package:logging/logging.dart'; /// Prints the contents of a [LogRecord] with pretty colors. -void prettyLog(LogRecord record) async { +void prettyLog(LogRecord record) { var pen = new TextPen(); chooseLogColor(pen.reset(), record.level); pen(record.toString()); if (record.error != null) - pen.record.error.toString(); + pen(record.error.toString()); if (record.stackTrace != null) - pen.record.stackTrace.toString(); + pen(record.stackTrace.toString()); pen(); }