调整DNS日志等级
This commit is contained in:
parent
d9afb0e25a
commit
889de3185c
@ -188,6 +188,11 @@ namespace FastGithub.DomainResolve
|
||||
|
||||
return result.Addresses;
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
this.logger.LogInformation($"dns://{dns}无法解析{domain}:请求超时");
|
||||
return Array.Empty<IPAddress>();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.logger.LogWarning($"dns://{dns}无法解析{domain}:{ex.Message}");
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
"Yarp": "Warning",
|
||||
"System": "Warning",
|
||||
"Microsoft": "Warning",
|
||||
"FastGithub.DomainResolve": "Warning",
|
||||
"Microsoft.AspNetCore.Server.Kestrel": "Error"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user