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