Skip to content

Commit a5772a8

Browse files
committed
adding logs to debug
1 parent a8df0bb commit a5772a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

controllers/database/singleinstancedatabase_controller.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,10 +1498,14 @@ func (r *SingleInstanceDatabaseReconciler) createOrReplaceSVC(ctx context.Contex
14981498
sid := m.Spec.Sid
14991499
if m.Spec.Image.PrebuiltDB {
15001500
edition := ""
1501-
_, _, edition, err := dbcommons.GetSidPdbEdition(r, r.Config, ctx, ctrl.Request{NamespacedName: types.NamespacedName{Namespace: m.Namespace, Name: m.Name}})
1501+
sid, pdb, edition, err := dbcommons.GetSidPdbEdition(r, r.Config, ctx, ctrl.Request{NamespacedName: types.NamespacedName{Namespace: m.Namespace, Name: m.Name}})
15021502
if err != nil {
15031503
return requeueY, err
15041504
}
1505+
r.Log.Info("Sid for the database is " + sid)
1506+
r.Log.Info("Pdb for the database is " + pdb)
1507+
r.Log.Info("edition for the database is " + edition)
1508+
r.Log.Info("editon for the dataase is " + cases.Title(language.English).String(edition))
15051509
m.Status.Edition = cases.Title(language.English).String(edition)
15061510
}
15071511

0 commit comments

Comments
 (0)