Fixed incorrect log statement after refactor