Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Solve #1202,mysql password is visible in log files #1226

Merged
merged 10 commits into from
Oct 11, 2017

Conversation

tianlong12
Copy link
Contributor

No description provided.

if(key.equals("password")){
LOG.info("\t" + key + " = **********" );
}
else{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

else should be placed after previous '}' and add a blank after it.

@@ -354,7 +354,12 @@ public static MetaStore getDBAdapter(
}

for (String key : p.stringPropertyNames()) {
LOG.info("\t" + key + " = " + p.getProperty(key));
if(key.equals("password")){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add blank between '){'

@@ -354,7 +354,11 @@ public static MetaStore getDBAdapter(
}

for (String key : p.stringPropertyNames()) {
LOG.info("\t" + key + " = " + p.getProperty(key));
if(key.equals("password")) {
LOG.info("\t" + key + " = **********" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the blank between '"' and ')'.

@littlezhou littlezhou merged commit d1fbd1a into Intel-bigdata:trunk Oct 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants