Skip to content

Commit ab00f81

Browse files
Cloudflare: log warning if zones fail to fetch
1 parent c80a26d commit ab00f81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Certify.Providers/DNS/Cloudflare/DnsProviderCloudflare.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq;
44
using System.Net.Http;
@@ -409,6 +409,7 @@ public async Task<List<DnsZone>> GetZones()
409409
}
410410
else
411411
{
412+
_log?.Warning("{provider} Failed to fetching DNS Zones: {resultStatus} {SourceContext}", nameof(DnsProviderCloudflare), result.StatusCode);
412413
return new List<DnsZone>();
413414
}
414415
}

0 commit comments

Comments
 (0)