Skip to content

Commit

Permalink
HIVE-22720: Remove Log from HiveConf::getLogIdVar (Rajesh Balamohan, …
Browse files Browse the repository at this point in the history
…reviewed by Ashutosh Chauhan, Gopal V)
  • Loading branch information
rbalamohan committed Jan 16, 2020
1 parent c5ffb78 commit d5cfea6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -5480,7 +5480,9 @@ public static String getVar(Configuration conf, ConfVars var, EncoderDecoder<Str
public String getLogIdVar(String defaultValue) {
String retval = getVar(ConfVars.HIVE_LOG_TRACE_ID);
if (StringUtils.EMPTY.equals(retval)) {
LOG.info("Using the default value passed in for log id: {}", defaultValue);
if (LOG.isDebugEnabled()) {
LOG.debug("Using the default value passed in for log id: {}", defaultValue);
}
retval = defaultValue;
}
if (retval.length() > LOG_PREFIX_LENGTH) {
Expand Down

0 comments on commit d5cfea6

Please sign in to comment.