File tree 1 file changed +3
-1
lines changed
app/src/main/java/com/testerhome/nativeandroid/fragments
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
import android .text .TextUtils ;
8
8
import android .util .Log ;
9
9
10
+ import com .testerhome .nativeandroid .BuildConfig ;
10
11
import com .testerhome .nativeandroid .Config ;
11
12
import com .testerhome .nativeandroid .R ;
12
13
import com .testerhome .nativeandroid .models .BannerEntity ;
@@ -164,6 +165,7 @@ public void failure(RetrofitError error) {
164
165
if (swipeRefreshLayout != null && swipeRefreshLayout .isRefreshing ()) {
165
166
swipeRefreshLayout .setRefreshing (false );
166
167
}
167
- Log .e ("cache" , "failure() called with: " + "error = [" + error + "]" + error .getResponse ().getHeaders ().toString ());
168
+ if (BuildConfig .DEBUG )
169
+ Log .e ("cache" , "failure() called with: " + "error = [" + error + "]" + error .getResponse ().getHeaders ().toString ());
168
170
}
169
171
}
You can’t perform that action at this time.
0 commit comments