From dc40bda71430135a9bdd313580938f8f10f3c1ce Mon Sep 17 00:00:00 2001 From: FongMi Date: Wed, 21 Feb 2024 15:52:07 +0800 Subject: [PATCH] Update Shell.java --- catvod/src/main/java/com/github/catvod/utils/Shell.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catvod/src/main/java/com/github/catvod/utils/Shell.java b/catvod/src/main/java/com/github/catvod/utils/Shell.java index 6b4b4dcc4..6fde6a3e4 100644 --- a/catvod/src/main/java/com/github/catvod/utils/Shell.java +++ b/catvod/src/main/java/com/github/catvod/utils/Shell.java @@ -4,10 +4,12 @@ import com.orhanobut.logger.Logger; public class Shell { + private static final String TAG = Shell.class.getSimpleName(); + public static void exec(String command) { try { int code = Runtime.getRuntime().exec(command).waitFor(); - if (code != 0) Logger.e("Shell command failed with exit code " + code); + if (code != 0) Logger.t(TAG).d("Shell command '%s' failed with exit code '%s'", command, code); } catch (Exception e) { e.printStackTrace(); }