aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/Compiler.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/firrtl/Compiler.scala')
-rw-r--r--src/main/scala/firrtl/Compiler.scala12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/main/scala/firrtl/Compiler.scala b/src/main/scala/firrtl/Compiler.scala
index 2998af3c..7354b8ee 100644
--- a/src/main/scala/firrtl/Compiler.scala
+++ b/src/main/scala/firrtl/Compiler.scala
@@ -214,17 +214,7 @@ private[firrtl] object Transform {
val remappedAnnotations = propagateAnnotations(name, logger, before.annotations, after.annotations, after.renames)
logger.trace(s"Annotations:")
- logger.trace {
- JsonProtocol
- .serializeTry(remappedAnnotations)
- .recoverWith {
- case NonFatal(e) =>
- val msg = s"Exception thrown during Annotation serialization:\n " +
- e.toString.replaceAll("\n", "\n ")
- Try(msg)
- }
- .get
- }
+ logger.trace(JsonProtocol.serializeRecover(remappedAnnotations))
logger.trace(s"Circuit:\n${after.circuit.serialize}")