From 0f9b9ea345b0bdb2183225c74c7ba842a5f1d47e Mon Sep 17 00:00:00 2001 From: cjereme Date: Thu, 7 Mar 2019 22:14:52 -0800 Subject: [PATCH] Update loggging information on bee migrate --- cmd/commands/migrate/migrate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/commands/migrate/migrate.go b/cmd/commands/migrate/migrate.go index fcc0dd7..d468f8b 100644 --- a/cmd/commands/migrate/migrate.go +++ b/cmd/commands/migrate/migrate.go @@ -104,7 +104,8 @@ func RunMigration(cmd *commands.Command, args []string) int { } beeLogger.Log.Infof("Using '%s' as 'driver'", mDriver) - beeLogger.Log.Infof("Using '%s' as 'conn'", mConn) + //Log sensitive connection information only when DEBUG is set to true. + beeLogger.Log.Debugf("Conn: %s", utils.FILE(), utils.LINE(), mConn) beeLogger.Log.Infof("Using '%s' as 'dir'", mDir) driverStr, connStr, dirStr := string(mDriver), string(mConn), string(mDir)