Added logging for status changes (bug 997120)