Better logging for dict KeyErrors