Swap boolean expression to match intended logging action