better rtmp error tracking (in debug)

hope this won't cause errors lel