Compare commits
1 Commits
04678d07e3
...
65148ab678
| Author | SHA1 | Date | |
|---|---|---|---|
| 65148ab678 |
14
README.md
14
README.md
@@ -1143,8 +1143,9 @@ query, and in each of `User-Agent`, `Referer` and `X-Request-Id`,
|
||||
including cases built from the characters the handlers escape, and
|
||||
against the widest access log line the service can be made to write: a
|
||||
5xx that keeps its concrete path while all three header fields are also
|
||||
at their budget. Every case runs through both handlers `internal/logger` can
|
||||
select — the JSON one and the text one it installs on a tty — since the
|
||||
at their budget. Every case runs through both handlers
|
||||
`internal/logger` can select — the JSON one and the text one it
|
||||
installs on a tty — since the
|
||||
two do not escape alike and the ceiling is quoted unqualified. Measured
|
||||
over a real connection, the widest line is 1,972 bytes.
|
||||
|
||||
@@ -1216,10 +1217,11 @@ falsifying the ceiling.
|
||||
**It covers GORM's statement logging as well.** GORM's own default
|
||||
logger printed the fully interpolated SQL — parameters and all — to
|
||||
standard output on every statement that returned an error, including a
|
||||
plain record-not-found, at a level no operator setting reached. Two of this service's lookups miss by design
|
||||
on unauthenticated routes: the entrypoint lookup behind
|
||||
`/webhook/{uuid}` and the user lookup behind the login form, whose path
|
||||
segment and submitted username the client picks outright. Every
|
||||
plain record-not-found, at a level no operator setting reached. Two of
|
||||
this service's lookups miss by design on unauthenticated routes: the
|
||||
entrypoint lookup behind `/webhook/{uuid}` and the user lookup behind
|
||||
the login form, whose path segment and submitted username the client
|
||||
picks outright. Every
|
||||
`gorm.Open` in the service now installs the adapter in
|
||||
`internal/gormlog` instead. It writes through the same `slog` logger as
|
||||
everything else, so its lines take the level the operator set and the
|
||||
|
||||
Reference in New Issue
Block a user