Correct logic to suppress a line from the logs