added logging to warning