diff --git a/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py b/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py index 95745adb..def69c5f 100644 --- a/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py +++ b/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py @@ -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):