Correct check for 'added' and 'updated' log message.