When AT_LEAST_ONCE is enabled, the logs are misleading
cjrh opened this issue · 0 comments
cjrh commented
ERROR:aiomsg:Peer 9e63626071a74022a1d16bc6915c5a16 is not connected. Message will be dropped.
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
ERROR:aiomsg:Peer 9e63626071a74022a1d16bc6915c5a16 is not connected. Message will be dropped.
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
ERROR:aiomsg:Peer 9e63626071a74022a1d16bc6915c5a16 is not connected. Message will be dropped.
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
ERROR:aiomsg:Peer 9e63626071a74022a1d16bc6915c5a16 is not connected. Message will be dropped.
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
ERROR:aiomsg:Peer 9e63626071a74022a1d16bc6915c5a16 is not connected. Message will be dropped.
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
ERROR:aiomsg:Peer 9e63626071a74022a1d16bc6915c5a16 is not connected. Message will be dropped.
INFO:root:Sending message: {'n': 5}
INFO:root:Sending message: {'n': 5}
The retries do trigger, but the logger message says that the messasge will be dropped. This would only be true if all the retries eventually failed.