Use correct method in deprecation log