-v trace while connecting.
This commit is contained in:
@@ -57,9 +57,9 @@ class InteractiveConsole(code.InteractiveConsole):
|
|||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
console = InteractiveConsole()
|
console = InteractiveConsole()
|
||||||
ws = websocket.create_connection(args.url)
|
|
||||||
if args.verbose > 1:
|
if args.verbose > 1:
|
||||||
websocket.enableTrace(True)
|
websocket.enableTrace(True)
|
||||||
|
ws = websocket.create_connection(args.url)
|
||||||
print("Press Ctrl+C to quit")
|
print("Press Ctrl+C to quit")
|
||||||
|
|
||||||
def recv():
|
def recv():
|
||||||
@@ -106,5 +106,5 @@ def main():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
except Exception, e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
Reference in New Issue
Block a user