Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format log tag #1642

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ShareIntentUtil {
public static final String INTENT_PATCH_INTERPRET_EXCEPTION = "intent_patch_interpret_exception";


private static final String TAG = "ShareIntentUtil";
private static final String TAG = "Tinker.ShareIntentUtil";

public static void setIntentReturnCode(Intent intent, int code) {
intent.putExtra(INTENT_RETURN_CODE, code);
Expand Down Expand Up @@ -195,7 +195,7 @@ public static void fixIntentClassLoader(Intent intent, ClassLoader cl) {
try {
intent.setExtrasClassLoader(cl);
} catch (Throwable thr) {
thr.printStackTrace();
ShareTinkerLog.e(TAG, "fixIntentClassLoader exception:", thr);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public static boolean checkComplete(String directory, ShareSecurityCheck securit
try {
intentResult.putExtra(ShareIntentUtil.INTENT_PATCH_MISSING_DEX_PATH, apkFile.getCanonicalPath());
} catch (IOException e) {
e.printStackTrace();
ShareTinkerLog.e(TAG, "checkComplete apkFile getCanonicalPath exception:", e);
}
ShareIntentUtil.setIntentReturnCode(intentResult,
ShareConstants.ERROR_LOAD_PATCH_VERSION_DEX_FILE_NOT_EXIST);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.tencent.tinker.loader.hotplug.interceptor.ServiceBinderInterceptor.BinderInvocationHandler;
import com.tencent.tinker.loader.shareutil.ShareIntentUtil;
import com.tencent.tinker.loader.shareutil.ShareReflectUtil;
import com.tencent.tinker.loader.shareutil.ShareTinkerLog;

import java.lang.reflect.Method;

Expand All @@ -37,7 +38,7 @@ public class AMSInterceptHandler implements BinderInvocationHandler {
try {
val = (int) ShareReflectUtil.findField(ActivityManager.class, "INTENT_SENDER_ACTIVITY").get(null);
} catch (Throwable thr) {
thr.printStackTrace();
ShareTinkerLog.e(TAG, "find INTENT_SENDER_ACTIVITY field exception:", thr);
val = 2;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ShareIntentUtil {
public static final String INTENT_PATCH_INTERPRET_EXCEPTION = "intent_patch_interpret_exception";


private static final String TAG = "ShareIntentUtil";
private static final String TAG = "Tinker.ShareIntentUtil";

public static void setIntentReturnCode(Intent intent, int code) {
intent.putExtra(INTENT_RETURN_CODE, code);
Expand Down Expand Up @@ -195,7 +195,7 @@ public static void fixIntentClassLoader(Intent intent, ClassLoader cl) {
try {
intent.setExtrasClassLoader(cl);
} catch (Throwable thr) {
thr.printStackTrace();
ShareTinkerLog.e(TAG, "fixIntentClassLoader exception:", thr);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
* Created by tangyinsheng on 2016/6/30.
*/
public class DexPatchGenerator {
private static final String TAG = "DexPatchGenerator";
private static final String TAG = "Tinker.DexPatchGenerator";

private final Dex oldDex;
private final Dex newDex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*/

public class ChangedClassesDexClassInfoCollector {
private static final String TAG = "ChangedClassesDexClassInfoCollector";
private static final String TAG = "Tinker.ChangedClassesDexClassInfoCollector";

private static final DexPatcherLogger LOGGER = new DexPatcherLogger();
private final Set<String> excludedClassPatterns = new HashSet<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
* Created by tangyinsheng on 2016/4/14.
*/
public final class DexClassesComparator {
private static final String TAG = "DexClassesComparator";
private static final String TAG = "Tinker.DexClassesComparator";

public static final int COMPARE_MODE_NORMAL = 0;
public static final int COMPARE_MODE_REFERRER_AFFECTED_CHANGE_ONLY = 1;
Expand Down