Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
minor - reduce log level
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jul 3, 2012
1 parent af8843f commit a80e58c
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -58,11 +58,11 @@ public void doValidate(String source, String target)
ArrayList<String> sourceVars = findVars(source);
ArrayList<String> targetVars = findVars(target);

Log.info("source vars: " + sourceVars);
Log.info("target vars: " + targetVars);
Log.debug("source vars: " + sourceVars);
Log.debug("target vars: " + targetVars);

ArrayList<String> targetAfterStrip = stripPositionIfApplicable(targetVars);
Log.info("target after stripping position: " + targetAfterStrip);
Log.debug("target after stripping position: " + targetAfterStrip);

List<String> missing = listMissing(sourceVars, targetAfterStrip);
if (!missing.isEmpty())
Expand Down Expand Up @@ -113,13 +113,13 @@ private static ArrayList<String> stripPositionIfApplicable(ArrayList<String> var
}
else
{
Log.warn("positional variable has invalid position. Ignore position strip.");
Log.info("positional variable has invalid position. Ignore position strip.");
return variables;
}
}
else if (hasPosition)
{
Log.warn("encounter mixed positional and unpositional variables. Ignore position strip.");
Log.info("encounter mixed positional and unpositional variables. Ignore position strip.");
return variables;
}
}
Expand All @@ -134,7 +134,7 @@ private static int extractPositionIndex(String positionAndDollar)
}
catch (Exception e)
{
Log.warn("cannot extract position index from " + positionAndDollar);
Log.info("cannot extract position index from " + positionAndDollar);
return -1;
}
}
Expand Down

0 comments on commit a80e58c

Please sign in to comment.