1
0
mirror of https://github.com/beego/bee.git synced 2024-11-23 11:50:55 +00:00

Merge pull request #586 from cjereme/fix/infosec-output-security

Fixes #536
This commit is contained in:
Faissal Elamraoui 2019-04-11 07:34:49 +02:00 committed by GitHub
commit 6a86284cec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 '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) beeLogger.Log.Infof("Using '%s' as 'dir'", mDir)
driverStr, connStr, dirStr := string(mDriver), string(mConn), string(mDir) driverStr, connStr, dirStr := string(mDriver), string(mConn), string(mDir)