Replace slog.Info (which outputs structured JSON in prod and ends up in log aggregation) with a plain fmt.Fprintf to stderr. The password is printed once on first startup in a clearly-delimited banner that won't be parsed as a structured log field. |
||
|---|---|---|
| .. | ||
| config | ||
| database | ||
| delivery | ||
| globals | ||
| handlers | ||
| healthcheck | ||
| logger | ||
| middleware | ||
| server | ||
| session | ||