简体   繁体   English

IdentityServer3-异常处理

[英]IdentityServer3 - Exception handling

Is there a way to handle exceptions ourselves. 有没有办法自己处理异常。 We have custom user service code inside our identityserver project and would like to know without diving through logs when errors occur. 我们在identityserver项目中拥有自定义的用户服务代码,并且希望在发生错误时不经过日志就知道。

We have a centralized error logger for all our apps. 我们为所有应用程序提供了集中式错误记录器。 I'd imagine something similar needed if using 3rd party exception lib (airbrake etc). 我想像如果使用第三方异常库(airbrake等),则需要类似的东西。

Is there something possible at the moment or is this ticket solving my problem https://github.com/IdentityServer/IdentityServer3/issues/2012 此刻是否有可能还是这张票解决了我的问题https://github.com/IdentityServer/IdentityServer3/issues/2012

If you care about the error logging - the event service will log all unhandled exceptions. 如果您关心错误记录-事件服务将记录所有未处理的异常。

The issue you mentioned would allow you to have more control over direct error handling (eg setting a custom http response) - but that's backlog right now. 您提到的问题将使您可以更好地控制直接错误处理(例如,设置自定义http响应)-但这是积压的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM