feat(log): 去掉v2ray-core、Xray-core的access.log、修改日志等级为warning、trojan-go日志等级修改为error

pull/534/merge
mack-a 2020-12-07 10:01:04 +08:00
parent 7361b18ab3
commit d1df00eb4e
1 changed files with 6 additions and 11 deletions

View File

@ -1537,9 +1537,8 @@ initV2RayConfig(){
cat << EOF > /etc/v2ray-agent/v2ray/config_full.json cat << EOF > /etc/v2ray-agent/v2ray/config_full.json
{ {
"log": { "log": {
"access": "/etc/v2ray-agent/v2ray/v2ray_access.log",
"error": "/etc/v2ray-agent/v2ray/v2ray_error.log", "error": "/etc/v2ray-agent/v2ray/v2ray_error.log",
"loglevel": "debug" "loglevel": "warning"
}, },
"inbounds": [ "inbounds": [
{ {
@ -1711,9 +1710,8 @@ EOF
cat << EOF > /etc/v2ray-agent/v2ray/config_full.json cat << EOF > /etc/v2ray-agent/v2ray/config_full.json
{ {
"log": { "log": {
"access": "/etc/v2ray-agent/v2ray/v2ray_access.log",
"error": "/etc/v2ray-agent/v2ray/v2ray_error.log", "error": "/etc/v2ray-agent/v2ray/v2ray_error.log",
"loglevel": "debug" "loglevel": "warning"
}, },
"inbounds": [ "inbounds": [
{ {
@ -1891,9 +1889,8 @@ EOF
cat << EOF > /etc/v2ray-agent/v2ray/conf/00_log.json cat << EOF > /etc/v2ray-agent/v2ray/conf/00_log.json
{ {
"log": { "log": {
"access": "/etc/v2ray-agent/v2ray/v2ray_access.log",
"error": "/etc/v2ray-agent/v2ray/v2ray_error.log", "error": "/etc/v2ray-agent/v2ray/v2ray_error.log",
"loglevel": "debug" "loglevel": "warning"
} }
} }
EOF EOF
@ -2205,9 +2202,8 @@ initXrayConfig(){
cat << EOF > /etc/v2ray-agent/xray/config_full.json cat << EOF > /etc/v2ray-agent/xray/config_full.json
{ {
"log": { "log": {
"access": "/etc/v2ray-agent/xray/xray_access.log",
"error": "/etc/v2ray-agent/xray/xray_error.log", "error": "/etc/v2ray-agent/xray/xray_error.log",
"loglevel": "debug" "loglevel": "warning"
}, },
"inbounds": [ "inbounds": [
{ {
@ -2385,9 +2381,8 @@ EOF
cat << EOF > /etc/v2ray-agent/xray/conf/00_log.json cat << EOF > /etc/v2ray-agent/xray/conf/00_log.json
{ {
"log": { "log": {
"access": "/etc/v2ray-agent/xray/xray_access.log",
"error": "/etc/v2ray-agent/xray/xray_error.log", "error": "/etc/v2ray-agent/xray/xray_error.log",
"loglevel": "debug" "loglevel": "warning"
} }
} }
EOF EOF
@ -2638,7 +2633,7 @@ initTrojanGoConfig(){
"local_port": 31296, "local_port": 31296,
"remote_addr": "127.0.0.1", "remote_addr": "127.0.0.1",
"remote_port": 31300, "remote_port": 31300,
"log_level":0, "log_level":3,
"log_file":"/etc/v2ray-agent/trojan/trojan.log", "log_file":"/etc/v2ray-agent/trojan/trojan.log",
"password": [ "password": [
"${uuid}" "${uuid}"