From d1df00eb4e6a897bf74046e0432e665680fcf393 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Mon, 7 Dec 2020 10:01:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(log):=20=E5=8E=BB=E6=8E=89v2ray-core?= =?UTF-8?q?=E3=80=81Xray-core=E7=9A=84access.log=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=97=A5=E5=BF=97=E7=AD=89=E7=BA=A7=E4=B8=BAwarning?= =?UTF-8?q?=E3=80=81trojan-go=E6=97=A5=E5=BF=97=E7=AD=89=E7=BA=A7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BAerror?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 10c86b1..d223ab2 100644 --- a/install.sh +++ b/install.sh @@ -1537,9 +1537,8 @@ initV2RayConfig(){ cat << EOF > /etc/v2ray-agent/v2ray/config_full.json { "log": { - "access": "/etc/v2ray-agent/v2ray/v2ray_access.log", "error": "/etc/v2ray-agent/v2ray/v2ray_error.log", - "loglevel": "debug" + "loglevel": "warning" }, "inbounds": [ { @@ -1711,9 +1710,8 @@ EOF cat << EOF > /etc/v2ray-agent/v2ray/config_full.json { "log": { - "access": "/etc/v2ray-agent/v2ray/v2ray_access.log", "error": "/etc/v2ray-agent/v2ray/v2ray_error.log", - "loglevel": "debug" + "loglevel": "warning" }, "inbounds": [ { @@ -1891,9 +1889,8 @@ EOF cat << EOF > /etc/v2ray-agent/v2ray/conf/00_log.json { "log": { - "access": "/etc/v2ray-agent/v2ray/v2ray_access.log", "error": "/etc/v2ray-agent/v2ray/v2ray_error.log", - "loglevel": "debug" + "loglevel": "warning" } } EOF @@ -2205,9 +2202,8 @@ initXrayConfig(){ cat << EOF > /etc/v2ray-agent/xray/config_full.json { "log": { - "access": "/etc/v2ray-agent/xray/xray_access.log", "error": "/etc/v2ray-agent/xray/xray_error.log", - "loglevel": "debug" + "loglevel": "warning" }, "inbounds": [ { @@ -2385,9 +2381,8 @@ EOF cat << EOF > /etc/v2ray-agent/xray/conf/00_log.json { "log": { - "access": "/etc/v2ray-agent/xray/xray_access.log", "error": "/etc/v2ray-agent/xray/xray_error.log", - "loglevel": "debug" + "loglevel": "warning" } } EOF @@ -2638,7 +2633,7 @@ initTrojanGoConfig(){ "local_port": 31296, "remote_addr": "127.0.0.1", "remote_port": 31300, - "log_level":0, + "log_level":3, "log_file":"/etc/v2ray-agent/trojan/trojan.log", "password": [ "${uuid}"