contiki-ng / tinydtls

A version of tinyDTLS that is refactored to be more easy to use "standalone" (e.g. without bindings to a specific IP-stack).
Other
8 stars 25 forks source link

Added make option to specify log level when compiling library/tests #4

Closed nfi closed 6 years ago

nfi commented 6 years ago

As reported in #2, the compile based logging that is now used by default is not runtime configurable.

Removed the command line argument to specify log level from tests/dtls-client and tests/dtls-server and instead added a make option to specify the log level when compiling:

make LOG_LEVEL_DTLS=LOG_LEVEL_DBG
simonduq commented 6 years ago

Could this also benefit from the runtime levels used by the shell?

nfi commented 6 years ago

Yes. By default in Contiki-NG when DTLS is used with CoAP, the DTLS log level is set to the same as the CoAP log level. This means that setting the CoAP log level from the shell will also control the DTLS log output.