Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit bffd0b4

Browse files
authored
Merge pull request #271 from UnityTech/yczhang1.5.4
[Align 1.5.4] Finish foundation part.
2 parents b24d3a2 + 61eb598 commit bffd0b4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Runtime/foundation/diagnostics.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,13 @@ public override string ToString() {
14211421
}
14221422

14231423
public virtual string toString(DiagnosticLevel minLevel = DiagnosticLevel.debug) {
1424-
return this.toDiagnosticsNode(style: DiagnosticsTreeStyle.singleLine).toString(minLevel: minLevel);
1424+
string fullString = null;
1425+
D.assert(() => {
1426+
fullString = this.toDiagnosticsNode(style: DiagnosticsTreeStyle.singleLine)
1427+
.toString(minLevel: minLevel);
1428+
return true;
1429+
});
1430+
return fullString ?? this.toStringShort();
14251431
}
14261432

14271433
public virtual DiagnosticsNode toDiagnosticsNode(

0 commit comments

Comments
 (0)