[svn r63061] dont print too much info on non-debug
--HG-- branch : trunk
This commit is contained in:
parent
a57836f1eb
commit
6b9bf26536
|
@ -68,8 +68,12 @@ def startserver(serversock, loop=False):
|
||||||
except (KeyboardInterrupt, SystemExit):
|
except (KeyboardInterrupt, SystemExit):
|
||||||
raise
|
raise
|
||||||
except:
|
except:
|
||||||
import traceback
|
if debug:
|
||||||
traceback.print_exc()
|
import traceback
|
||||||
|
traceback.print_exc()
|
||||||
|
else:
|
||||||
|
excinfo = sys.exc_info()
|
||||||
|
print "got exception", excinfo[1]
|
||||||
if not loop:
|
if not loop:
|
||||||
break
|
break
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue