Fixing bug where Do Not Log events were making it into the database when
the event was returning to normal.