From 1ded4c3ba3e6ef91b548bbbd9a849e2fa947290f Mon Sep 17 00:00:00 2001 From: Jack Wotherspoon Date: Tue, 22 Oct 2024 12:18:26 -0400 Subject: [PATCH] fix: add migration message on startup of v1 Proxy (#2301) Add migration message to v1 startup. --- cmd/cloud_sql_proxy/cloud_sql_proxy.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/cloud_sql_proxy/cloud_sql_proxy.go b/cmd/cloud_sql_proxy/cloud_sql_proxy.go index 1de80ff5f..0776abfb2 100644 --- a/cmd/cloud_sql_proxy/cloud_sql_proxy.go +++ b/cmd/cloud_sql_proxy/cloud_sql_proxy.go @@ -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()