日志输出完整异常

This commit is contained in:
xljiulang 2021-07-30 23:40:14 +08:00
parent bedc825ff3
commit 64ea55bc61
3 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ namespace FastGithub.DomainResolve
} }
catch (Exception) catch (Exception)
{ {
this.logger.LogTrace($"由于{pureDns}解析{domain}失败,本次使用{fastDns}"); this.logger.LogWarning($"由于{pureDns}解析{domain}失败,本次使用{fastDns}");
return await LookupCoreAsync(fastDns, domain, cancellationToken); return await LookupCoreAsync(fastDns, domain, cancellationToken);
} }
} }

View File

@ -60,7 +60,7 @@ namespace FastGithub.ReverseProxy
} }
else else
{ {
this.logger.LogError($"{message}{Environment.NewLine}{exception.Message}"); this.logger.LogError($"{message}{Environment.NewLine}{exception}");
} }
} }
} }

View File

@ -105,7 +105,7 @@ namespace FastGithub.ReverseProxy
await context.Response.WriteAsJsonAsync(new await context.Response.WriteAsJsonAsync(new
{ {
error = error.ToString(), error = error.ToString(),
message = errorFeature.Exception?.ToString() message = errorFeature.Exception?.Message
}); });
} }
} }