server: add logging