Commit 0cc87d1
committed
Fix Logger process-level calls on older Elixir
Elixir 1.11-1.13 expose Logger.put_process_level/1 and
Logger.delete_process_level/0, while newer versions use process-aware
arities. Add a compatibility helper in ConfigTest that dispatches by
function_exported?/3 and uses apply/3 to avoid compile-time
undefined-function warnings, which restores OTP 24 CI runs.1 parent 2b4698a commit 0cc87d1
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
1493 | | - | |
| 1493 | + | |
1494 | 1494 | | |
1495 | | - | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
1496 | 1508 | | |
1497 | 1509 | | |
0 commit comments