Add log to warn deprecated method.