Gary Moon 323374e268 Correct the access log format (#24085)
The default access log format has been unnecessarily escaped, leading to
spurious backslashes appearing in log lines.

Additionally, the `RemoteAddr` field includes the port, which breaks
most log parsers attempting to process it. I've added a call to
`net.SplitHostPort()` attempting to isolate the address alone, with a
fallback to the original address if it errs.

Signed-off-by: Gary Moon <[email protected]>
2023-04-13 21:14:06 +08:00
S
Description
No description provided
Apache-2.0
14 MiB
Languages
TypeScript 42%
MDX 31.2%
Astro 7.9%
JavaScript 6.4%
Shell 6.3%
Other 6.2%