Browse Source

Merge pull request #203 from EasyAbp/warning-log

Use warning to log exceptions of inventory operation
pull/204/head
Super 4 years ago
committed by GitHub
parent
commit
7fdd56cba2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      plugins/Inventories/DaprActors/src/EasyAbp.EShop.Products.DaprActorsInventory.Domain/EasyAbp/EShop/Products/DaprActorsInventory/DaprActorsProductInventoryProvider.cs
  2. 4
      plugins/Inventories/OrleansGrains/src/EasyAbp.EShop.Products.OrleansGrainsInventory.Domain/EasyAbp/EShop/Products/OrleansGrainsInventory/OrleansGrainsProductInventoryProvider.cs

4
plugins/Inventories/DaprActors/src/EasyAbp.EShop.Products.DaprActorsInventory.Domain/EasyAbp/EShop/Products/DaprActorsInventory/DaprActorsProductInventoryProvider.cs

@ -67,7 +67,7 @@ public class DaprActorsProductInventoryProvider : IProductInventoryProvider, ITr
}
catch (Exception e)
{
_logger.LogError("Actor threw: {Message}", e.Message);
_logger.LogWarning("Actor threw: {Message}", e.InnerException?.Message ?? e.Message);
return false;
}
@ -92,7 +92,7 @@ public class DaprActorsProductInventoryProvider : IProductInventoryProvider, ITr
}
catch (Exception e)
{
_logger.LogError("Actor threw: {Message}", e.Message);
_logger.LogWarning("Actor threw: {Message}", e.InnerException?.Message ?? e.Message);
return false;
}

4
plugins/Inventories/OrleansGrains/src/EasyAbp.EShop.Products.OrleansGrainsInventory.Domain/EasyAbp/EShop/Products/OrleansGrainsInventory/OrleansGrainsProductInventoryProvider.cs

@ -65,7 +65,7 @@ public class OrleansGrainsProductInventoryProvider : IProductInventoryProvider,
}
catch (Exception e)
{
_logger.LogError("Grain threw: {Message}", e.Message);
_logger.LogWarning("Grain threw: {Message}", e.InnerException?.Message ?? e.Message);
return false;
}
@ -90,7 +90,7 @@ public class OrleansGrainsProductInventoryProvider : IProductInventoryProvider,
}
catch (Exception e)
{
_logger.LogError("Grain threw: {Message}", e.Message);
_logger.LogWarning("Grain threw: {Message}", e.InnerException?.Message ?? e.Message);
return false;
}

Loading…
Cancel
Save