{"action":"created","issue":{"url":"https://api.github.com/repos/kanaka/websockify/issues/126","labels_url":"https://api.github.com/repos/kanaka/websockify/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/kanaka/websockify/issues/126/comments","events_url":"https://api.github.com/repos/kanaka/websockify/issues/126/events","html_url":"https://github.com/kanaka/websockify/pull/126","id":32338015,"number":126,"title":"Show main exception only with --verbose","user":{"login":"lzap","id":49752,"avatar_url":"https://avatars.githubusercontent.com/u/49752?v=3","gravatar_id":"","url":"https://api.github.com/users/lzap","html_url":"https://github.com/lzap","followers_url":"https://api.github.com/users/lzap/followers","following_url":"https://api.github.com/users/lzap/following{/other_user}","gists_url":"https://api.github.com/users/lzap/gists{/gist_id}","starred_url":"https://api.github.com/users/lzap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzap/subscriptions","organizations_url":"https://api.github.com/users/lzap/orgs","repos_url":"https://api.github.com/users/lzap/repos","events_url":"https://api.github.com/users/lzap/events{/privacy}","received_events_url":"https://api.github.com/users/lzap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kanaka/websockify/labels/bug","name":"bug","color":"e10c02"},{"url":"https://api.github.com/repos/kanaka/websockify/labels/python","name":"python","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-04-28T07:50:19Z","updated_at":"2015-06-04T13:29:07Z","closed_at":"2015-04-28T19:15:00Z","pull_request":{"url":"https://api.github.com/repos/kanaka/websockify/pulls/126","html_url":"https://github.com/kanaka/websockify/pull/126","diff_url":"https://github.com/kanaka/websockify/pull/126.diff","patch_url":"https://github.com/kanaka/websockify/pull/126.patch"},"body":"We call websockify from our web app and users often hit used port. In that case\nwebsockify exceptions out with strack trace which causes ABRT (Bug Reporting\nTool) to collect exception information, system information and making a report.\n\nThis patch prints error messages by default to stderr and only if --verbose is\nused, the full stacktrace is shown. I can introduce another option like --trace\nif you do not like this one."},"comment":{"url":"https://api.github.com/repos/kanaka/websockify/issues/comments/108899292","html_url":"https://github.com/kanaka/websockify/pull/126#issuecomment-108899292","issue_url":"https://api.github.com/repos/kanaka/websockify/issues/126","id":108899292,"user":{"login":"lzap","id":49752,"avatar_url":"https://avatars.githubusercontent.com/u/49752?v=3","gravatar_id":"","url":"https://api.github.com/users/lzap","html_url":"https://github.com/lzap","followers_url":"https://api.github.com/users/lzap/followers","following_url":"https://api.github.com/users/lzap/following{/other_user}","gists_url":"https://api.github.com/users/lzap/gists{/gist_id}","starred_url":"https://api.github.com/users/lzap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzap/subscriptions","organizations_url":"https://api.github.com/users/lzap/orgs","repos_url":"https://api.github.com/users/lzap/repos","events_url":"https://api.github.com/users/lzap/events{/privacy}","received_events_url":"https://api.github.com/users/lzap/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T13:29:07Z","updated_at":"2015-06-04T13:29:07Z","body":"My particular problem is that we call your application several times until a free port is found, all is erroring with exception trace which is then caught by ABRT tool:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/home/lzap/work/foreman/extras/noVNC/websockify.py\", line 5, in <module>\r\n    websockify.websocketproxy.websockify_init()\r\n  File \"/home/lzap/work/foreman/extras/noVNC/websockify/websocketproxy.py\", line 390, in websockify_init\r\n    server.start_server()\r\n  File \"/home/lzap/work/foreman/extras/noVNC/websockify/websocket.py\", line 834, in start_server\r\n    lsock = self.socket(self.listen_host, self.listen_port, False, self.prefer_ipv6)\r\n  File \"/home/lzap/work/foreman/extras/noVNC/websockify/websocket.py\", line 198, in socket\r\n    sock.bind(addrs[0][4])\r\n  File \"/usr/lib64/python2.7/socket.py\", line 224, in meth\r\n    return getattr(self._sock,name)(*args)\r\nsocket.error: [Errno 98] Address already in use\r\n```\r\n\r\nDo you want me to create a patch that will only catch this particular exception? I was under impression that generic approach might work nicely, users still see errors and if they want details `--verbose` can be provided..."}}