mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Print line numbers correctly for native and unknown source
This commit is contained in:
parent
74701b0790
commit
25275933ce
@ -93,7 +93,14 @@ public class Logger {
|
||||
sb.append(elt.getMethodName());
|
||||
sb.append("(line");
|
||||
sb.append(':');
|
||||
sb.append(elt.getLineNumber());
|
||||
int lineNumber = elt.getLineNumber();
|
||||
if (lineNumber == -2) {
|
||||
sb.append("unknown");
|
||||
} else if (lineNumber == -1) {
|
||||
sb.append("native");
|
||||
} else {
|
||||
sb.append(lineNumber);
|
||||
}
|
||||
sb.append(')');
|
||||
sb.append('\n');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user