Commit 79922302 authored by Savorboard's avatar Savorboard

add exception log if storage structure failed. #337

parent 4c870f42
......@@ -35,7 +35,14 @@ namespace DotNetCore.CAP
{
_logger.LogDebug("### CAP background task is starting.");
try
{
await Storage.InitializeAsync(stoppingToken);
}
catch (Exception e)
{
_logger.LogError(e, "Initializing the storage structure failed!");
}
stoppingToken.Register(() =>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment