Commit 3523c95
committed
Restore async logger condition in Log4j2 tests
The async logger condition was removed in the previous commit which
caused testAsyncLogger to fail. AsyncLogger doesn't capture source
location attributes by default in non-latest dependency tests, so
this check is needed to return empty code location attributes in
that case.1 parent b4a73bf commit 3523c95
File tree
1 file changed
+11
-5
lines changed- instrumentation/log4j/log4j-appender-2.17/testing/src/main/java/io/opentelemetry/instrumentation/log4j/appender/v2_17
1 file changed
+11
-5
lines changedLines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
| |||
0 commit comments