Log a warning message whenever the deprecated function