Commit 6488eb8
committed
fix: use explicit format verb in logger middleware Printf calls
Passing a dynamic string directly as a format argument to Warnf/Errorf/Infof
triggers staticcheck SA1006 and can misinterpret % characters in URL paths
(e.g. %2F, %20) as format directives, producing garbled output.
Use "%s" as an explicit format string instead.1 parent 5e29491 commit 6488eb8
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments