v2.2.2 Changed logger so it will only log errors once