Refactor - Calling method of deprecated-function

Record logs