Import dotnetDBF for error handling.
This commit is contained in:
@@ -1077,8 +1077,8 @@ namespace BodyshopPartner.Utils.Decoder
|
||||
|
||||
for (int i = 0; i < reader.RecordCount; i++)
|
||||
{
|
||||
|
||||
var readValues = reader.NextRecord();
|
||||
logger.Debug($"Reading line {i +1}");
|
||||
var readValues = reader.NextRecord(false);
|
||||
dynamic lin = new JObject();
|
||||
|
||||
//Mising est_seq
|
||||
@@ -1165,7 +1165,12 @@ namespace BodyshopPartner.Utils.Decoder
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
logger.Trace(ex, "Unable to open LIN file. Retrying. ");
|
||||
logger.Error(ex, "Unable to open LIN file. Retrying. ");
|
||||
retryNumber++;
|
||||
Thread.Sleep(retrySleep);
|
||||
}catch(Exception Ex)
|
||||
{
|
||||
logger.Error(Ex, "Unable to open LIN file. Retrying. Unknown Exception ");
|
||||
retryNumber++;
|
||||
Thread.Sleep(retrySleep);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user