Explorar o código

add securitypolicy log level

Infinity95 %!s(int64=6) %!d(string=hai) anos
pai
achega
03369fda5e
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 2 1
      include/ua_plugin_log.h
  2. 1 1
      plugins/ua_log_stdout.c

+ 2 - 1
include/ua_plugin_log.h

@@ -36,7 +36,8 @@ typedef enum {
     UA_LOGCATEGORY_SESSION,
     UA_LOGCATEGORY_SERVER,
     UA_LOGCATEGORY_CLIENT,
-    UA_LOGCATEGORY_USERLAND
+    UA_LOGCATEGORY_USERLAND,
+    UA_LOGCATEGORY_SECURITYPOLICY
 } UA_LogCategory;
 
 /**

+ 1 - 1
plugins/ua_log_stdout.c

@@ -13,7 +13,7 @@ static pthread_mutex_t printf_mutex = PTHREAD_MUTEX_INITIALIZER;
 #endif
 
 const char *LogLevelNames[6] = {"trace", "debug", "info", "warning", "error", "fatal"};
-const char *LogCategoryNames[6] = {"network", "channel", "session", "server", "client", "userland"};
+const char *LogCategoryNames[7] = {"network", "channel", "session", "server", "client", "userland", "securitypolicy"};
 
 #if (defined(__GNUC__) && defined(__GNUC_MINOR__) && __GNUC__ >= 4 && __GNUC_MINOR__ >= 6) || \
     defined(__clang__)