Added additional logs for lets encrypt certificates

This commit is contained in:
Marcel Baumgartner
2023-10-13 23:02:23 +02:00
committed by GitHub
parent 84d39c1c75
commit e1c4f8a2a9

View File

@@ -26,6 +26,8 @@ public class LetsEncryptService
}
public async Task AutoProcess()
{
try
{
if (!ConfigService.Get().Moonlight.LetsEncrypt.Enable)
return;
@@ -47,6 +49,12 @@ public class LetsEncryptService
await LoadCertificate();
}
catch(Exception e)
{
Logger.Error("Unhandled exception while auto proccessing lets encrypt certificates");
Logger.Error(e);
}
}
private Task LoadCertificate()
{
@@ -105,6 +113,7 @@ public class LetsEncryptService
try
{
await challenge.Validate();
Logger.Info("Tried to validate");
}
catch (Exception e)
{