Skip to content

Commit

Permalink
Fix up some variable names in Flogger.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 360265028
  • Loading branch information
kluever authored and Flogger Team committed Mar 1, 2021
1 parent 915ab62 commit 9348b91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ final void write(LogData data) {
} catch (LoggingException allowed) {
// Bypass the catch-all if the exception is deliberately created during error handling.
throw allowed;
} catch (RuntimeException wtf) {
System.err.println("logging error: " + wtf.getMessage());
wtf.printStackTrace(System.err);
} catch (RuntimeException runtimeException) {
System.err.println("logging error: " + runtimeException.getMessage());
runtimeException.printStackTrace(System.err);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ private static String getErrorString(Object value, RuntimeException e) {
String errorMessage;
try {
errorMessage = e.toString();
} catch (RuntimeException wtf) {
} catch (RuntimeException runtimeException) {
// Ok, now you're just being silly...
errorMessage = wtf.getClass().getSimpleName();
errorMessage = runtimeException.getClass().getSimpleName();
}
return "{"
+ value.getClass().getName()
Expand Down

0 comments on commit 9348b91

Please sign in to comment.