replaced logging