Skip to content

Commit

Permalink
fix: add migration message on startup of v1 Proxy (#2301)
Browse files Browse the repository at this point in the history
Add migration message to v1 startup.
  • Loading branch information
jackwotherspoon authored Oct 22, 2024
1 parent 5915e40 commit 1ded4c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/cloud_sql_proxy/cloud_sql_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,12 @@ use the value from the flag, Not compatible with -fuse.`,
defer cleanup()
}

// Notify users of v2 Proxy and suggest migrating
logging.Infof("This is the Cloud SQL Proxy v1. It is no longer receiving " +
"active feature development. For the latest features and improvements, " +
"migrate to the v2 version of the Cloud SQL Proxy. For details, see: " +
"https://github.com/GoogleCloudPlatform/cloud-sql-proxy/blob/main/migration-guide.md")

if *quiet {
logging.Infof("Cloud SQL Auth proxy logging has been disabled by the -quiet flag. All messages (including errors) will be suppressed.")
logging.DisableLogging()
Expand Down

0 comments on commit 1ded4c3

Please sign in to comment.