Fix conditional expression of logging :scream: