Bug in logging