Updated server.cpp to make log