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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
4 deletions
-
plugins/Inventories/DaprActors/src/EasyAbp.EShop.Products.DaprActorsInventory.Domain/EasyAbp/EShop/Products/DaprActorsInventory/DaprActorsProductInventoryProvider.cs
-
plugins/Inventories/OrleansGrains/src/EasyAbp.EShop.Products.OrleansGrainsInventory.Domain/EasyAbp/EShop/Products/OrleansGrainsInventory/OrleansGrainsProductInventoryProvider.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; |
|
|
|
} |
|
|
|
|
|
|
|
@ -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; |
|
|
|
} |
|
|
|
|