Commit ab83788
committed
fix(gateway): wrap aux-handler warn in arrow to preserve log binding
Greptile review feedback on #70676: the previous 'const warn = params.log.warn; logger: { warn }' shape detaches the method from its owning logger, so any implementation that relies on 'this' (or that gets rebound later on params.log) would mis-fire. Replace with an arrow-function wrapper that invokes params.log.warn through its owner each call.1 parent 1e5dbd4 commit ab83788
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
| 68 | + | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
0 commit comments