log more things

pull/1671/head
beltram 1 year ago committed by Herman Slatman
parent 2e128056dc
commit 0bc530c98e
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

@ -118,11 +118,6 @@ func (db *DB) UpdateOrder(ctx context.Context, o *acme.Order) error {
nu.Error = o.Error
nu.CertificateID = o.CertificateID
_, err = db.updateAddOrderIDs(ctx, o.AccountID, o.ID)
if err != nil {
return err
}
return db.save(ctx, old.ID, nu, old, "order", orderTable)
}

@ -127,6 +127,7 @@ func (o *Order) UpdateStatus(ctx context.Context, db DB) error {
default:
return NewErrorISE("unrecognized order status: %s", o.Status)
}
log.Printf(">>> Update order %s status", o.ID)
if err := db.UpdateOrder(ctx, o); err != nil {
return WrapErrorISE(err, "error updating order")
}
@ -331,6 +332,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques
o.CertificateID = cert.ID
o.Status = StatusValid
log.Printf(">>> Update order %s from finalize", o.ID)
if err = db.UpdateOrder(ctx, o); err != nil {
return WrapErrorISE(err, "error updating order %s", o.ID)
}

Loading…
Cancel
Save