add logging info before if statement
Revert "add logging info before if statement"

This reverts commit c71f48c66e16525f6a698a8b0ae7438e608b3858.