Merge pull request #324 from Moonlight-Panel/FixLetsEncrypt

Added additional logs for lets encrypt certificates
This commit is contained in:
Marcel Baumgartner
2023-10-13 23:02:45 +02:00
committed by GitHub

View File

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