client: add logging