Skip to content

Commit

Permalink
log to stdout when db creating fails
Browse files Browse the repository at this point in the history
this will help debug issues so you don't need to describe the database
to see the error
  • Loading branch information
Soren Mathiasen committed Nov 27, 2018
1 parent 2c2ba8c commit 6e874d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func main() {
client := client.CrdClient(crdcs, scheme, db.Namespace) // add the database namespace to the client
err = handleCreateDatabase(db, ec2client, client)
if err != nil {
log.Printf("database creation failed: %v", err)
err := updateStatus(db, crd.DatabaseStatus{Message: fmt.Sprintf("%v", err), State: Failed}, client)
if err != nil {
log.Printf("database CRD status update failed: %v", err)
Expand Down

0 comments on commit 6e874d5

Please sign in to comment.