Merge pull request #1206 from nanoric/bitmex_onerror_show_more_details

[Mod] 修改:BitmexGateway出错时将会在stderr里面打印更详细的错误信息
This commit is contained in:
vn.py 2018-11-02 09:28:25 +08:00 committed by GitHub
commit bc28feddfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -469,7 +469,7 @@ class BitmexWebsocketApi(WebsocketClient):
e.errorMsg = exceptionValue
self.gateway.onError(e)
traceback.print_exc()
sys.stderr.write(self.exceptionDetail(exceptionType, exceptionValue, tb))
#----------------------------------------------------------------------
def writeLog(self, content):