Browse Source

修改日志

陈国伟 3 năm trước cách đây
mục cha
commit
23b4103695

+ 1 - 1
FastGithub.DomainResolve/DnsClient.cs

@@ -59,7 +59,7 @@ namespace FastGithub.DomainResolve
         /// <returns></returns>
         /// <returns></returns>
         public override string ToString()
         public override string ToString()
         {
         {
-            return this.dns.ToString();
+            return $"dns://{this.dns}";
         }
         }
     }
     }
 }
 }

+ 3 - 3
FastGithub.DomainResolve/DomainResolver.cs

@@ -192,18 +192,18 @@ namespace FastGithub.DomainResolve
 
 
                 if (address == null)
                 if (address == null)
                 {
                 {
-                    this.logger.LogWarning($"dns({dnsClient})解析不到{domain.Host}可用的ip解析");
+                    this.logger.LogWarning($"{dnsClient}解析不到{domain.Host}可用的ip解析");
                 }
                 }
                 else
                 else
                 {
                 {
-                    this.logger.LogInformation($"dns({dnsClient}): {domain.Host}->{address}");
+                    this.logger.LogInformation($"{dnsClient}: {domain.Host}->{address}");
                 }
                 }
                 return address;
                 return address;
             }
             }
             catch (Exception ex)
             catch (Exception ex)
             {
             {
                 cancellationToken.ThrowIfCancellationRequested();
                 cancellationToken.ThrowIfCancellationRequested();
-                this.logger.LogWarning($"dns({dnsClient})无法解析{domain.Host}:{ex.Message}");
+                this.logger.LogWarning($"{dnsClient}无法解析{domain.Host}:{ex.Message}");
                 return default;
                 return default;
             }
             }
         }
         }