Commit ba86beb
authored
Fix "always evaluate" for Logger anonymous function tuples (#15081)
Previously, when the configuration directive `always_evaluate_messages`
was set to true an exception was raised when a function that returns a
tuple was given to Logger:
```
Logger.info(fn -> {"", []} end)
```
Would result in:
```
** (Protocol.UndefinedError) protocol String.Chars not implemented for Tuple
Got value:
{"", []}
```1 parent 5093bab commit ba86beb
2 files changed
+38
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | | - | |
1020 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1021 | 1024 | | |
1022 | 1025 | | |
1023 | | - | |
1024 | | - | |
| 1026 | + | |
| 1027 | + | |
1025 | 1028 | | |
1026 | 1029 | | |
1027 | 1030 | | |
| |||
1151 | 1154 | | |
1152 | 1155 | | |
1153 | 1156 | | |
1154 | | - | |
1155 | | - | |
| 1157 | + | |
1156 | 1158 | | |
1157 | 1159 | | |
1158 | 1160 | | |
| |||
1259 | 1261 | | |
1260 | 1262 | | |
1261 | 1263 | | |
1262 | | - | |
1263 | | - | |
| 1264 | + | |
1264 | 1265 | | |
1265 | 1266 | | |
1266 | 1267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
653 | 654 | | |
654 | 655 | | |
655 | 656 | | |
| |||
666 | 667 | | |
667 | 668 | | |
668 | 669 | | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
669 | 680 | | |
670 | 681 | | |
671 | 682 | | |
| |||
688 | 699 | | |
689 | 700 | | |
690 | 701 | | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
691 | 720 | | |
692 | 721 | | |
693 | 722 | | |
| |||
0 commit comments