Skip to content

Commit 7bdfdee

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public async Task<List<DnsZone>> GetZones()
409409
}
410410
else
411411
{
412+
_log?.Warning("{provider} Failed to fetching DNS Zones: {resultStatus}", nameof(DnsProviderCloudflare), result.StatusCode);
412413
return new List<DnsZone>();
413414
}
414415
}
@@ -428,7 +429,6 @@ public async Task<bool> InitProvider(Dictionary<string, string> credentials, Dic
428429
{
429430
throw new ArgumentException(credentialError);
430431
}
431-
;
432432

433433
_authKey = credentials.ContainsKey("authkey") ? credentials["authkey"] : null;
434434
_apiToken = credentials.ContainsKey("apitoken") ? credentials["apitoken"] : null;

0 commit comments

Comments
 (0)