public void logError(string tErr) { try { WEBService.LogEntry tmpEntry = new WEBService.LogEntry(); tmpEntry.gameID = curPlay.gameSysID; tmpEntry.terminalID = curPlay.stationID; tmpEntry.userID = curPIN.PIN; tmpEntry.moduleName = "PlayerAudit1031.dll"; service.logError(tmpEntry); } catch { // don't do anything but catch exception } }
public void logError(string tErr) { Logger.Log(tErr); try { WEBService.LogEntry tmpEntry = new WEBService.LogEntry(); tmpEntry.gameID = gameSystemID; tmpEntry.terminalID = curEGMData.terminalID; tmpEntry.userID = curPIN.PIN; tmpEntry.moduleName = "BreakTheBankTabs1063.exe"; tmpEntry.errorStr = tErr; Bingo.singleton.service.logError(tmpEntry); } catch (Exception ex) { Logger.Log("Exception while trying to save error to database, Error: " + ex.Message); } }