fix debug logging

accidentally switched true and false clauses of ? operator