-v trace while connecting.

This commit is contained in:
INADA Naoki
2013-05-01 01:17:08 +09:00
parent e79ccb2d11
commit a3429b70a5

View File

@@ -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)