Added log message in sendall handling
Fixed compile errors
Fixed compile errors