Skip to content

Commit cd73fed

Browse files
committed
🐛 FIX: Final test for java stacktrace expansion
When the exception `tagContext` is empty or not provided, the logstash appender will show the java stack trace. We need to test this!
1 parent eecfcef commit cd73fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/specs/unit/LogstashAppenderTest.cfc

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
8585
try {
8686
var a = b;
8787
} catch ( any e ) {
88-
structDelete( e, "tagContext" );
88+
e.tagContext = [];
8989
var otherLog = variables.loge.init(
9090
message = len( e.detail ) ? e.detail : e.message,
9191
severity = 0,

0 commit comments

Comments
 (0)