diff --git a/pkg/tinydtls/Makefile.include b/pkg/tinydtls/Makefile.include index aebc670325..fda2825bd6 100644 --- a/pkg/tinydtls/Makefile.include +++ b/pkg/tinydtls/Makefile.include @@ -39,12 +39,6 @@ ifeq (,$(CONFIG_KCONFIG_USEPKG_TINYDTLS)) endif endif -ifneq (,$(or $(CONFIG_DTLS_DEBUG),$(filter -DCONFIG_DTLS_DEBUG,$(CFLAGS)))) - CFLAGS += -DTINYDTLS_LOG_LVL=6 -else - CFLAGS += -DTINYDTLS_LOG_LVL=0 -endif - # For now contrib only contains sock_dtls adaption ifneq (,$(filter tinydtls_sock_dtls,$(USEMODULE))) DIRS += $(RIOTBASE)/pkg/tinydtls/contrib diff --git a/pkg/tinydtls/contrib/sock_dtls.c b/pkg/tinydtls/contrib/sock_dtls.c index 124a0a07bd..cab2941557 100644 --- a/pkg/tinydtls/contrib/sock_dtls.c +++ b/pkg/tinydtls/contrib/sock_dtls.c @@ -887,7 +887,6 @@ void sock_dtls_close(sock_dtls_t *sock) void sock_dtls_init(void) { dtls_init(); - dtls_set_log_level(TINYDTLS_LOG_LVL); } static void _ep_to_session(const sock_udp_ep_t *ep, session_t *session)