sendto的日志级别修改为INFO

This commit is contained in:
luwenpeng
2023-08-14 17:21:25 +08:00
parent 15ef7a3120
commit d019e5f0e9

View File

@@ -22,7 +22,7 @@ int packet_inject_ipv4(struct in_addr *ip_dst, const char *data, int len)
{
char string[256] = {0};
inet_ntop(PF_INET, ip_dst, string, sizeof(string));
LOG_ERROR("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
LOG_INFO("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
close(fd);
return -1;
}
@@ -48,7 +48,7 @@ int packet_inject_ipv6(struct in6_addr *ip6_dst, const char *data, int len)
{
char string[256] = {0};
inet_ntop(PF_INET6, ip6_dst, string, sizeof(string));
LOG_ERROR("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
LOG_INFO("Failed at send() %s, (%d: %s)", string, errno, strerror(errno));
close(fd);
return -1;
}