Quellcode durchsuchen

log more things

beltram vor 3 Jahren
Ursprung
Commit
0bc530c98e
2 geänderte Dateien mit 2 neuen und 5 gelöschten Zeilen
  1. 0 5
      acme/db/nosql/order.go
  2. 2 0
      acme/order.go

+ 0 - 5
acme/db/nosql/order.go

@@ -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)
 }
 

+ 2 - 0
acme/order.go

@@ -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)
 	}