Include name attribute in GraphStageLogic toString (#29877)

This commit is contained in:
Nitika Agarwal 2020-12-10 23:15:00 +05:30 committed by GitHub
parent 64c27e435b
commit 268b46c8a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1583,6 +1583,9 @@ abstract class GraphStageLogic private[stream] (val inCount: Int, val outCount:
override def toString = s"SubSourceOutlet($name)"
}
override def toString: String =
attributes.get[Attributes.Name].map(attr => s"${getClass.toString}-${attr.n}").getOrElse(getClass.toString)
}
/**