Skip to content

Commit

Permalink
Consolidate logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mmichalek committed Aug 26, 2016
1 parent 099c291 commit 4fe03fb
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -369,10 +369,8 @@ public Object[] getObjectValues(BinaryEncoding encoding, String[] values,
}
} catch (Exception ex) {
String valueTrimmed = FormatUtils.abbreviateForLogging(value);
log.error("Could not convert a value of {} for column {} of type {}",
new Object[] { valueTrimmed, column.getName(), column.getMappedType() });
log.error("", ex);
throw new RuntimeException(ex);
throw new RuntimeException("Could not convert a value of " + valueTrimmed + " for column " +
column.getName() + " of type " + column.getMappedType(), ex);
}
}

Expand Down

0 comments on commit 4fe03fb

Please sign in to comment.