Skip to content

Commit 0082e0e

Browse files
committed
Update Version
1 parent 94b0bf0 commit 0082e0e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

v2ray_util/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '3.8.10'
1+
__version__ = '3.8.11'
22

33
from .util_core.trans import _

v2ray_util/util_core/v2ray.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ def cleanLog():
105105
def log(error_log=False):
106106
f = subprocess.Popen(['tail','-f', '-n', '100', '/var/log/v2ray/{}.log'.format("error" if error_log else "access")],
107107
stdout=subprocess.PIPE,stderr=subprocess.PIPE)
108-
while True:
109-
print(bytes.decode(f.stdout.readline().strip()))
108+
try:
109+
while True:
110+
print(bytes.decode(f.stdout.readline().strip()))
111+
except BaseException:
112+
print()
110113

111114
@classmethod
112115
def restart(cls):

0 commit comments

Comments
 (0)