diff --git a/ArknightsMaaConfig/maa.py b/ArknightsMaaConfig/maa.py index 1335164..090dc82 100755 --- a/ArknightsMaaConfig/maa.py +++ b/ArknightsMaaConfig/maa.py @@ -90,7 +90,7 @@ haveError |= TaskFailRetry("maa run mall") != 0 haveError |= TaskFailRetry("maa run award") != 0 # storage error log if haveError: - cp.Command(f"cp {log_dir}/pyshell.log {log_dir}/pyshell.{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}.log") + cp.Command(f"cp {log_dir}/maa_pyshell.log {log_dir}/maa_pyshell.{datetime.now().strftime('%Y-%m-%d-%H-%M-%S')}.log") # shutdown cp.RetryCommand("maa closedown") cp.Command("docker stop redroid") diff --git a/run_all.sh b/run_all.sh index ffde96a..c1d9ac9 100755 --- a/run_all.sh +++ b/run_all.sh @@ -5,7 +5,7 @@ MAA_PY="$SCRIPT_DIR/ArknightsMaaConfig/maa.py" MAA_LOG_DIR="${MAA_LOG:-/var/log/maa.log}" if [ -x "$MAA_PY" ]; then - "$MAA_PY" > "$MAA_LOG_DIR" 2>&1 + "$MAA_PY" > "$MAA_LOG_DIR/maa_pyshell.log" 2>&1 else - python3 "$MAA_PY" > "$MAA_LOG_DIR" 2>&1 + python3 "$MAA_PY" > "$MAA_LOG_DIR/maa_pyshell.log" 2>&1 fi \ No newline at end of file