fix: uuid saving as blob
This commit is contained in:
parent
2b9abff7f1
commit
beea18f70b
10 changed files with 80 additions and 20 deletions
helpers
|
@ -1,5 +1,7 @@
|
|||
#include <helpers.h>
|
||||
#include <netdb.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <trantor/utils/Logger.h>
|
||||
|
||||
int
|
||||
|
@ -22,7 +24,7 @@ helpers::open_tcp_connection(char *host, char *port)
|
|||
|
||||
if ((status = connect(s, res->ai_addr, res->ai_addrlen)) != 0)
|
||||
{
|
||||
LOG_ERROR << "Error opening connection " << status;
|
||||
LOG_ERROR << "Error opening connection " << strerror(errno);
|
||||
freeaddrinfo(res);
|
||||
return 0;
|
||||
}
|
||||
|
@ -30,4 +32,4 @@ helpers::open_tcp_connection(char *host, char *port)
|
|||
freeaddrinfo(res);
|
||||
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue