Skip to content

Commit

Permalink
logprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
kbudde committed Jan 2, 2022
1 parent 6067dba commit bb5f330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ func (a app) processIncomingRequest(r *http.Request) (legoHttpReq, error) {
if err != nil {
return l, fmt.Errorf("json decoding error: %w", err)
}
fmt.Printf("unchanged FQDN='%s'", l.FQDN)
log.Printf("unchanged FQDN='%s'", l.FQDN)
l.FQDN = strings.TrimSpace(l.FQDN)
fmt.Printf("trimspace FQDN='%s'", l.FQDN)
log.Printf("trimspace FQDN='%s'", l.FQDN)
l.FQDN = strings.TrimPrefix(l.FQDN, "\n")
fmt.Printf("trimprefix FQDN='%s'", l.FQDN)
log.Printf("trimprefix FQDN='%s'", l.FQDN)
l.FQDN = strings.TrimSuffix(l.FQDN, ".")
fmt.Printf("trimsuff FQDN='%s'", l.FQDN)
log.Printf("trimsuff FQDN='%s'", l.FQDN)

if r.RequestURI == "/cleanup" {
l.Action = "DELETE"
Expand Down

0 comments on commit bb5f330

Please sign in to comment.