Commit 2b42ecaa authored by 簡碩辰's avatar 簡碩辰

Update run.py

parent 2c9b86f5
...@@ -14,9 +14,9 @@ def TryConnect(host, port): ...@@ -14,9 +14,9 @@ def TryConnect(host, port):
return True return True
except ConnectionRefusedError: except ConnectionRefusedError:
print("Connect to {0}:{1} is refused.".format(host, port)) print("[{0}][Connect][{1}:{2}]: is refused".format(now, host, port))
except: except:
print("Error with unknown problem.") print("[{0}][Connect][{1}:{2}]: unknown error".format(now, host, port))
return False return False
user = os.getenv("DVR_USER") user = os.getenv("DVR_USER")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment