network.cpp: getaddrinfo error msg: "\n" added

Today, it looks like
```
04-Apr-2020 00:33:45 [TN-Grid Platform] Project requested delay of 121 seconds
04-Apr-2020 03:13:20 getaddrinfo(OpenWrt): Name does not resolve04-Apr-2020 03:13:22 [TN-Grid Platform] Project requested delay of 121 seconds
04-Apr-2020 04:36:43 getaddrinfo(OpenWrt): Name does not resolve04-Apr-2020 04:36:45 [TN-Grid Platform] Project requested delay of 121 seconds
04-Apr-2020 06:14:09 getaddrinfo(OpenWrt): Name does not resolve04-Apr-2020 06:14:11 [TN-Grid Platform] Project requested delay of 121 seconds
04-Apr-2020 07:36:18 getaddrinfo(OpenWrt): Name does not resolve04-Apr-2020 07:36:20 [TN-Grid Platform] Project requested delay of 121 seconds
```
which connects two messages that are unrelated - the first being caused by the host or its name server and the second by the project server.
This commit is contained in:
Steffen Möller 2020-04-04 20:18:21 +02:00 committed by GitHub
parent e90b4780ce
commit 48dd9302c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ int resolve_hostname(const char* hostname, sockaddr_storage &ip_addr) {
if (retval == EAI_SYSTEM) {
perror(buf);
} else {
fprintf(stderr, "%s: %s", buf, gai_strerror(retval));
fprintf(stderr, "%s: %s\n", buf, gai_strerror(retval));
}
return ERR_GETADDRINFO;
}