mirror of https://github.com/FongMi/TV.git
parent
50a133284a
commit
04653d7ac2
@ -1,16 +1,20 @@ |
||||
package com.github.catvod.crawler; |
||||
|
||||
import android.util.Log; |
||||
import android.text.TextUtils; |
||||
|
||||
import com.orhanobut.logger.Logger; |
||||
|
||||
public class SpiderDebug { |
||||
|
||||
private static final String TAG = SpiderDebug.class.getSimpleName(); |
||||
|
||||
public static void log(Throwable th) { |
||||
Log.d(TAG, th.getMessage()); |
||||
if (th == null || TextUtils.isEmpty(th.getMessage())) return; |
||||
Logger.t(TAG).d(th.getMessage()); |
||||
} |
||||
|
||||
public static void log(String msg) { |
||||
Log.d(TAG, msg); |
||||
if (TextUtils.isEmpty(msg)) return; |
||||
Logger.t(TAG).d(msg); |
||||
} |
||||
} |
||||
|
||||
Loading…
Reference in new issue