kyma-project / control-plane

A flexible and easy way to manage Kyma Runtimes
Apache License 2.0
17 stars 113 forks source link

Add more informative logs to schema migrator #3402

Closed MarekMichali closed 7 months ago

MarekMichali commented 7 months ago

Below sample logs for the run with no script executed:

2024/01/03 07:32:21 main.go:105: Migration UP
2024/01/03 07:32:21 main.go:136: # WAITING FOR CONNECTION WITH DATABASE #
2024/01/03 07:32:21 main.go:149: # STARTING TO COPY MIGRATION FILES #
2024/01/03 07:32:21 main.go:178: # COULD NOT COPY OLD MIGRATION FILES: open migrations/kyma-environment-broker: no such file or directory
2024/01/03 07:32:21 main.go:184: # STARTING MIGRATION #
Error during driver initialization, dial tcp 127.0.0.1:5432: connect: connection refused
Error during driver initialization, dial tcp 127.0.0.1:5432: connect: connection refused
Error during driver initialization, dial tcp 127.0.0.1:5432: connect: connection refused
Error during driver initialization, dial tcp 127.0.0.1:5432: connect: connection refused
2024/01/03 07:32:21 main.go:224: No Changes. Migration done.
# HALT CLOUD SQL PROXY #

What we do not like about these logs?

AC

MarekMichali commented 7 months ago

PR: https://github.com/kyma-project/control-plane/pull/3401 Example logs provided in the PR comments