changed logging behaviour