Add cppitertools to ycm, small changes in loogging
Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D541
This commit is contained in:
parent
45922a987e
commit
e08c6bf3ff
@ -25,6 +25,8 @@ BASE_FLAGS = [
|
||||
'-I./libs/googletest/googletest/include',
|
||||
'-I./libs/googletest/googlemock/include',
|
||||
'-I./libs/benchmark/include',
|
||||
# We include cppitertools headers directly from libs directory.
|
||||
'-I./libs',
|
||||
'-I./libs/rapidcheck/include',
|
||||
'-I./libs/antlr4/runtime/Cpp/runtime/src',
|
||||
'-I./build/libs/gflags/include'
|
||||
|
@ -113,17 +113,14 @@ int main(int argc, char **argv) {
|
||||
// Initialize socket.
|
||||
socket_t socket;
|
||||
if (!socket.Bind(endpoint)) {
|
||||
LOG(ERROR) << "Cannot bind to socket on " << FLAGS_interface << " at "
|
||||
LOG(FATAL) << "Cannot bind to socket on " << FLAGS_interface << " at "
|
||||
<< FLAGS_port;
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
if (!socket.SetNonBlocking()) {
|
||||
LOG(ERROR) << "Cannot set socket to non blocking!";
|
||||
std::exit(EXIT_FAILURE);
|
||||
LOG(FATAL) << "Cannot set socket to non blocking!";
|
||||
}
|
||||
if (!socket.Listen(1024)) {
|
||||
LOG(ERROR) << "Cannot listen on socket!";
|
||||
std::exit(EXIT_FAILURE);
|
||||
LOG(FATAL) << "Cannot listen on socket!";
|
||||
}
|
||||
|
||||
Dbms dbms;
|
||||
|
Loading…
Reference in New Issue
Block a user