Fix @deprecation warning in log