[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:
|
||||||
|
if debug:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
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