Changed log method