Added log to server code.