Updated logging messages.
This commit is contained in:
@@ -172,7 +172,7 @@ namespace BodyshopPartner.Utils
|
|||||||
catch (Exception Ex)
|
catch (Exception Ex)
|
||||||
{
|
{
|
||||||
logger.Error(Ex, "Error encountered while scanning for estimates on disk.", Ex.ToString());
|
logger.Error(Ex, "Error encountered while scanning for estimates on disk.", Ex.ToString());
|
||||||
hlog("Error encountered while processing QuickBooks requests. " + Ex.Message);
|
hlog("Error encountered while scanning for estimates on disk. " + Ex.Message);
|
||||||
HttpResponse.Add(new ScanResponseItem() { Id = "-1", Success = false, ErrorMessage = Ex.Message });
|
HttpResponse.Add(new ScanResponseItem() { Id = "-1", Success = false, ErrorMessage = Ex.Message });
|
||||||
}
|
}
|
||||||
res.WithCORS().AsText(JsonConvert.SerializeObject(HttpResponse));
|
res.WithCORS().AsText(JsonConvert.SerializeObject(HttpResponse));
|
||||||
@@ -195,8 +195,8 @@ namespace BodyshopPartner.Utils
|
|||||||
}
|
}
|
||||||
catch (Exception Ex)
|
catch (Exception Ex)
|
||||||
{
|
{
|
||||||
logger.Error(Ex, "Error encountered while processing QuickBooks requests.");
|
logger.Error(Ex, "Error encountered while handling import requests.");
|
||||||
hlog("Error encountered while processing QuickBooks requests.");
|
hlog("Error encountered while handling import requests.");
|
||||||
HttpResponse.Add("success" , false);
|
HttpResponse.Add("success" , false);
|
||||||
HttpResponse.Add("error", Ex.ToString());
|
HttpResponse.Add("error", Ex.ToString());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user