Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

VolleyLog fix #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/android/volley/VolleyLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ private static String buildMessage(String format, Object... args) {
// Walk up the stack looking for the first caller outside of VolleyLog.
// It will be at least two frames up, so start there.
for (int i = 2; i < trace.length; i++) {
Class<?> clazz = trace[i].getClass();
if (!clazz.equals(VolleyLog.class)) {
String className = trace[i].getClassName();
if (!VolleyLog.class.getName().equals(className)) {
String callingClass = trace[i].getClassName();
callingClass = callingClass.substring(callingClass.lastIndexOf('.') + 1);
callingClass = callingClass.substring(callingClass.lastIndexOf('$') + 1);
Expand Down