[#1661] use logging instead of deprecation warning