fix logError ex
This commit is contained in:
@@ -51,7 +51,7 @@ public class HealthCheckService : IHealthCheckService
|
||||
}
|
||||
|
||||
await Task.Delay(_attempted * 1000);
|
||||
|
||||
|
||||
if (_isOffline == false)
|
||||
{
|
||||
_logger.LogInformation("Health");
|
||||
@@ -66,11 +66,11 @@ public class HealthCheckService : IHealthCheckService
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError("Failed cause :{reason}", ex.Message);
|
||||
_logger.LogError(ex, "Failed cause :{reason}", ex.Message);
|
||||
_isOffline = true;
|
||||
await Task.Delay(5000);
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user