Skip to content

Commit

Permalink
Update Version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 1, 2020
1 parent 94b0bf0 commit 0082e0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion v2ray_util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '3.8.10'
__version__ = '3.8.11'

from .util_core.trans import _
7 changes: 5 additions & 2 deletions v2ray_util/util_core/v2ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ def cleanLog():
def log(error_log=False):
f = subprocess.Popen(['tail','-f', '-n', '100', '/var/log/v2ray/{}.log'.format("error" if error_log else "access")],
stdout=subprocess.PIPE,stderr=subprocess.PIPE)
while True:
print(bytes.decode(f.stdout.readline().strip()))
try:
while True:
print(bytes.decode(f.stdout.readline().strip()))
except BaseException:
print()

@classmethod
def restart(cls):
Expand Down

0 comments on commit 0082e0e

Please sign in to comment.