Skip to content

Commit

Permalink
Change logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Nov 29, 2023
1 parent c19b5e8 commit 8e67a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/chaincode/chaincode_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (r *FabricChaincodeReconciler) Reconcile(ctx context.Context, req ctrl.Requ
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: podLabels,
Annotations: fabricChaincode.Spec.Annotations,
Annotations: fabricChaincode.Spec.PodAnnotations,
},
Spec: podSpec,
},
Expand Down Expand Up @@ -575,7 +575,7 @@ func (r *FabricChaincodeReconciler) Reconcile(ctx context.Context, req ctrl.Requ
}
}
r.setConditionStatus(ctx, fabricChaincode, hlfv1alpha1.RunningStatus, true, nil, false)
return ctrl.Result{}, nil
return r.updateCRStatusOrFailReconcile(ctx, r.Log, fabricChaincode)
}

var (
Expand Down
4 changes: 2 additions & 2 deletions controllers/mainchannel/mainchannel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ func (r *FabricMainChannelReconciler) Reconcile(ctx context.Context, req ctrl.Re
r.setConditionStatus(ctx, fabricMainChannel, hlfv1alpha1.FailedStatus, false, errors.Wrapf(err, "error converting block to JSON"), false)
return r.updateCRStatusOrFailReconcile(ctx, r.Log, fabricMainChannel)
}
r.Log.Info(fmt.Sprintf("Config block main channel: %s", buf2.String()))
r.Log.Info(fmt.Sprintf("ConfigTX: %v", newConfigTx))
log.Debug(fmt.Sprintf("Config block main channel: %s", buf2.String()))
log.Debug(fmt.Sprintf("ConfigTX: %v", newConfigTx))
err = updateApplicationChannelConfigTx(currentConfigTx, newConfigTx)
if err != nil {
r.setConditionStatus(ctx, fabricMainChannel, hlfv1alpha1.FailedStatus, false, errors.Wrapf(err, "failed to update application channel config"), false)
Expand Down

0 comments on commit 8e67a33

Please sign in to comment.