Skip to content

Commit

Permalink
feat: more mqtt logging
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Oct 26, 2023
1 parent b27b5f0 commit b83d924
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acme/challenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,13 @@ func http01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSONWeb
}
data, err := json.Marshal(req)
if err != nil {
logrus.Warn(err)
return
}
if token := mqtt.GetClient().Publish(fmt.Sprintf("%s/jobs", mqtt.GetOrganization()), 1, false, data); token.Wait() && token.Error() != nil {
logrus.Warn(token.Error())
}
logrus.Info("published validation request")
}()
vc := MustClientFromContext(ctx)
resp, errHttp := vc.Get(u.String())
Expand Down

0 comments on commit b83d924

Please sign in to comment.