aioapns icon indicating copy to clipboard operation
aioapns copied to clipboard

Improve notifications sending logging

Open ivanmaterov opened this issue 2 years ago • 3 comments

I faced the problem that several notifications were not sent and I don't understand the reason. I propose to improve logging so that all cases of unsuccessful sends are displayed in warnigs.

ivanmaterov avatar Feb 27 '23 06:02 ivanmaterov

Hi @ivanmaterov

Why you can’t just set logging level DEBUG for aioapns’s logger?

Fatal1ty avatar Feb 27 '23 10:02 Fatal1ty

Hi @Fatal1ty It was a production environment. I do not want to receive all the debug logs =)

ivanmaterov avatar Feb 28 '23 02:02 ivanmaterov

@Fatal1ty It also helps to bring the code into a consistent form. It's strange that one exception is handled as a debug, and the other is not handled at all

ivanmaterov avatar Mar 07 '23 02:03 ivanmaterov