Use console warning instead of log for deperaction warning.