moved to warnf

This commit is contained in:
Cam Otts 2023-05-24 09:16:56 -05:00
parent 8e0ae86214
commit f9159e9d00
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -21,7 +21,7 @@ func newInviteHandler(cfg *config.Config) *inviteHandler {
func (h *inviteHandler) Handle(params account.InviteParams) middleware.Responder {
if h.cfg.Invites == nil || !h.cfg.Invites.InvitesOpen {
logrus.Warn("not accepting invites; attempt from '%v'", params.Body.Email)
logrus.Warnf("not accepting invites; attempt from '%v'", params.Body.Email)
return account.NewInviteBadRequest()
}
if params.Body == nil || params.Body.Email == "" {