Open Closed

Injected IAuditLogRepository logic does not work anymore #3284


0
alexander.nikonov created

ABP Framework version: v5.1.2 UI type: Angular DB provider: EF Core Identity Server Separated (Angular)

Hello

I use the class implementing IAuditingStore interface to catch all the errors in our application. I would like to use this class as a proxy: for this I inject ABP object implementing IAuditLogRepository interface.

I've faced the issue while trying to save an error (It looks like task has been canceled by ABP logic) - see the picture attached:

This logic used to work well on the previous versions of ABP framework. What is wrong now?


4 Answer(s)
  • 0
    EngincanV created
    Support Team

    Hi, thanks for the explanation. I'll check and write you back asap.

  • 0
    EngincanV created
    Support Team

    I've created an application with v5.0 and implemented the IAuditingStore interface and save records by using the IAuditLogRepository. Then, upgraded the application to v5.1.2 and I still could save records to the database and didn't face with any problems.

    Can you share your class that implements the IAuditingStore?

  • 0
    alexander.nikonov created

    This issue can be reproduced when you are trying to save some error (the exception which happens in your application). Have you reproduced this case?

  • 0
    EngincanV created
    Support Team

    This issue can be reproduced when you are trying to save some error (the exception which happens in your application). Have you reproduced this case?

    Yes, I tried in that case but couldn't reproduce the problem. If it's possible can you share your class that implements the IAuditingStore?