Add log messages for usernames (#1692)

* add log messages for usernames
* document behavior better in logs

Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
This commit is contained in:
Rafia Sabih
2021-11-18 09:55:33 +01:00
committed by GitHub
co-authored by Felix Kunde
parent f9150aa6db
commit e98439e5b6
2 changed files with 10 additions and 4 deletions
+1
View File
@@ -1176,6 +1176,7 @@ func (c *Cluster) initRobotUsers() error {
if strings.Contains(username, ".") {
splits := strings.Split(username, ".")
namespace = splits[0]
c.logger.Warningf("enable_cross_namespace_secret is set. Database role name contains the respective namespace i.e. %s is the created user", username)
}
}