clowwindy 11 years ago
parent
commit
a0e1a9f1b0
  1. 6
      shadowsocks/tcprelay.py

6
shadowsocks/tcprelay.py

@ -157,6 +157,7 @@ class TCPRelayHandler(object):
uncomplete = True
else:
logging.error(e)
if self._config['verbose']:
traceback.print_exc()
self.destroy()
return False
@ -208,6 +209,7 @@ class TCPRelayHandler(object):
self.destroy()
else:
logging.error(e)
if self._config['verbose']:
traceback.print_exc()
self.destroy()
@ -263,6 +265,7 @@ class TCPRelayHandler(object):
self._handle_dns_resolved)
except Exception as e:
logging.error(e)
if self._config['verbose']:
traceback.print_exc()
# TODO use logging when debug completed
self.destroy()
@ -317,6 +320,7 @@ class TCPRelayHandler(object):
return
except (OSError, IOError) as e:
logging.error(e)
if self._config['verbose']:
traceback.print_exc()
self.destroy()
@ -375,6 +379,7 @@ class TCPRelayHandler(object):
self._write_to_sock(data, self._local_sock)
except Exception as e:
logging.error(e)
if self._config['verbose']:
traceback.print_exc()
# TODO use logging when debug completed
self.destroy()
@ -593,6 +598,7 @@ class TCPRelay(object):
continue
else:
logging.error(e)
if self._config['verbose']:
traceback.print_exc()
else:
if sock:

Loading…
Cancel
Save