日志输出完整异常
This commit is contained in:
		
							parent
							
								
									bedc825ff3
								
							
						
					
					
						commit
						64ea55bc61
					
				@ -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);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
@ -60,7 +60,7 @@ namespace FastGithub.ReverseProxy
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                this.logger.LogError($"{message}{Environment.NewLine}{exception.Message}");
 | 
					                this.logger.LogError($"{message}{Environment.NewLine}{exception}");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user