mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-05 20:02:19 +03:00
Use log levels from syslog.h when available.
Thanks to Dag Björklund for pointing this out.
This commit is contained in:
1 parent
2d57017540
commit
3f69cd1e9b
9 files changed
+21
-13
No files matched your search
@@ -35,7 +35,7 @@
|
||||
#include "net/uip-debug.h"
|
||||
#endif
|
||||
|
||||
static coap_log_t maxlog = LOG_WARN; /* default maximum log level */
|
||||
static coap_log_t maxlog = LOG_WARNING; /* default maximum log level */
|
||||
|
||||
coap_log_t
|
||||
coap_get_log_level() {
|
||||
@@ -49,7 +49,7 @@ coap_set_log_level(coap_log_t level) {
|
||||
|
||||
/* this array has the same order as the type log_t */
|
||||
static char *loglevels[] = {
|
||||
"EMRG", "ALRT", "CRIT", "WARN", "NOTE", "INFO", "DEBG"
|
||||
"EMRG", "ALRT", "CRIT", "ERR", "WARN", "NOTE", "INFO", "DEBG"
|
||||
};
|
||||
|
||||
#ifdef HAVE_TIME_H
|
||||
|
||||
Reference in new issue
Block a user