Skip to content

Commit

Permalink
Avoid using underscore for method names
Browse files Browse the repository at this point in the history
  • Loading branch information
hazendaz committed Apr 30, 2015
1 parent eb4e1b8 commit 9a267a6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -530,21 +530,21 @@ public void error(String msg, Throwable t) {
private void formatAndLog(int priority, String format, Object... argArray) {
if (isLoggable(priority)) {
FormattingTuple ft = MessageFormatter.arrayFormat(format, argArray);
_log(priority, ft.getMessage(), ft.getThrowable());
logInternal(priority, ft.getMessage(), ft.getThrowable());
}
}

private void log(int priority, String message, Throwable throwable) {
if (isLoggable(priority)) {
_log(priority, message, throwable);
logInternal(priority, message, throwable);
}
}

private boolean isLoggable(int priority) {
return Log.isLoggable(name, priority);
}

private void _log(int priority, String message, Throwable throwable) {
private void logInternal(int priority, String message, Throwable throwable) {
if (throwable != null) {
message += '\n' + Log.getStackTraceString(throwable);
}
Expand Down

0 comments on commit 9a267a6

Please sign in to comment.