diff --git a/samples/net/dns_resolve/prj.conf b/samples/net/dns_resolve/prj.conf index 0fde404cb5e..95d6d0ed0bc 100644 --- a/samples/net/dns_resolve/prj.conf +++ b/samples/net/dns_resolve/prj.conf @@ -8,19 +8,7 @@ CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3 CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5 CONFIG_NET_LOG=y -CONFIG_SYS_LOG=y -CONFIG_SYS_LOG_NET_LEVEL=2 -CONFIG_SYS_LOG_SHOW_COLOR=y -CONFIG_NET_DEBUG_NET_PKT=y -CONFIG_NET_DEBUG_DNS_RESOLVE=y -#CONFIG_NET_DEBUG_CONTEXT=y -#CONFIG_NET_DEBUG_CORE=y -#CONFIG_NET_DEBUG_IF=y -#CONFIG_NET_DEBUG_IPV4=y -#CONFIG_NET_DEBUG_IPV6=y -#CONFIG_NET_DEBUG_UDP=y -#CONFIG_NET_DEBUG_DHCPV4=y -#CONFIG_NET_DEBUG_L2_ETHERNET=y +CONFIG_LOG=y CONFIG_NET_IPV6=y CONFIG_NET_IPV4=y diff --git a/samples/net/dns_resolve/sample.yaml b/samples/net/dns_resolve/sample.yaml index bc504e5e855..e19649b84ae 100644 --- a/samples/net/dns_resolve/sample.yaml +++ b/samples/net/dns_resolve/sample.yaml @@ -11,14 +11,10 @@ tests: - CONFIG_MDNS_RESOLVER=y - CONFIG_LLMNR_RESOLVER=n - CONFIG_NET_DHCPV4=y - - CONFIG_NET_DEBUG_APP=y - - CONFIG_SYS_LOG_NET_LEVEL=4 tags: mdns test_llmnr: extra_configs: - CONFIG_MDNS_RESOLVER=n - CONFIG_LLMNR_RESOLVER=y - CONFIG_NET_DHCPV4=y - - CONFIG_NET_DEBUG_APP=y - - CONFIG_SYS_LOG_NET_LEVEL=4 tags: llmnr diff --git a/samples/net/dns_resolve/src/main.c b/samples/net/dns_resolve/src/main.c index cab4b654eb7..aaaa37f81dc 100644 --- a/samples/net/dns_resolve/src/main.c +++ b/samples/net/dns_resolve/src/main.c @@ -4,11 +4,8 @@ * SPDX-License-Identifier: Apache-2.0 */ -#if 1 -#define SYS_LOG_DOMAIN "dns-res" -#define NET_SYS_LOG_LEVEL SYS_LOG_LEVEL_DEBUG -#define NET_LOG_ENABLED 1 -#endif +#define LOG_MODULE_NAME net_dns_resolve_client +#define NET_LOG_LEVEL LOG_LEVEL_DBG #include #include