Add tech support line

This commit is contained in:
Eli Ribble 2026-01-29 17:30:21 +00:00
parent 03c3467eea
commit 713cefc21a
No known key found for this signature in database
4 changed files with 55 additions and 9 deletions

View file

@ -1,4 +1,5 @@
package api
import (
"os"
@ -8,7 +9,9 @@ import (
func debugSaveRequest(body []byte, err error, message string) {
// TODO(eliribble): avoid using a single static filename and instead securely generate
// this value
log.Error().Err(err).Msg(message)
if err != nil {
log.Error().Err(err).Msg(message)
}
output, err := os.OpenFile("/tmp/request.body", os.O_RDWR|os.O_CREATE, 0666)
if err != nil {
log.Info().Msg("Failed to open temp request.bady")