@@ -808,7 +808,7 @@ private synchronized void addBreadCrumb(BreadCrumb bc) {
808
808
809
809
private synchronized void recordBreadCrumb () {
810
810
if (breadCrumbs != null ) {
811
- if (parent == null || parent . isDone () ) {
811
+ if (parent == null ) {
812
812
StringBuilder sb = new StringBuilder ();
813
813
writeBreadCrumb (sb );
814
814
@@ -822,22 +822,20 @@ private synchronized void recordBreadCrumb() {
822
822
823
823
private synchronized void writeBreadCrumb (StringBuilder sb ) {
824
824
if (breadCrumbs != null ) {
825
- if (parent == null || parent .isDone ()) {
826
- sb .append ('[' );
827
- Iterator <BreadCrumb > it = breadCrumbs .iterator ();
828
- BreadCrumb previous = null ;
829
- while (it .hasNext ()) {
830
- BreadCrumb bc = it .next ();
831
- if (!bc .isMarker ()) {
832
- if (previous != null ) {
833
- sb .append (previous .isMarker () ? "][" : "," );
834
- }
835
- bc .writeTo (sb );
825
+ sb .append ('[' );
826
+ Iterator <BreadCrumb > it = breadCrumbs .iterator ();
827
+ BreadCrumb previous = null ;
828
+ while (it .hasNext ()) {
829
+ BreadCrumb bc = it .next ();
830
+ if (!bc .isMarker ()) {
831
+ if (previous != null ) {
832
+ sb .append (previous .isMarker () ? "][" : "," );
836
833
}
837
- previous = bc ;
834
+ bc . writeTo ( sb ) ;
838
835
}
839
- sb . append ( ']' ) ;
836
+ previous = bc ;
840
837
}
838
+ sb .append (']' );
841
839
}
842
840
}
843
841
@@ -887,7 +885,15 @@ public ChildFiberBreadCrumb(Fiber child) {
887
885
888
886
@ Override
889
887
public void writeTo (StringBuilder sb ) {
890
- child .writeBreadCrumb (sb );
888
+ sb .append ("{child-" );
889
+ sb .append (child .id );
890
+ sb .append (": " );
891
+ if (child .status .get () == NOT_COMPLETE ) {
892
+ sb .append ("not-complete" );
893
+ } else {
894
+ child .writeBreadCrumb (sb );
895
+ }
896
+ sb .append ("}" );
891
897
}
892
898
}
893
899
0 commit comments