Add tech support line
This commit is contained in:
parent
03c3467eea
commit
713cefc21a
4 changed files with 55 additions and 9 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue