]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Add alias for 'verbose' for vgauth logging
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:21 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:21 +0000 (11:23 -0700)
People keep using 'debug' instead of 'verbose'; make both work.

open-vm-tools/vgauth/common/prefs.h
open-vm-tools/vgauth/service/log.c

index 09b97aea98e956afce2048bdf1133cabe9d4edf5..7951bf5cbaf2f1d8221cd9e37665304fa00601fb 100644 (file)
@@ -173,6 +173,7 @@ msgCatalog = /etc/vmware-tools/vgauth/messages
 #define SERVICE_LOGLEVEL_NORMAL             "normal"
 /** Normal logging level plus debug messages. */
 #define SERVICE_LOGLEVEL_VERBOSE            "verbose"
+#define SERVICE_LOGLEVEL_DEBUG              "debug"
 
 /** @} */
 
index 335a6cd4b7eb0731ea10481ba61d52e0e04da221..1f65872a9af3d8d4b12b4cc5e5f348d8237c369a 100644 (file)
@@ -451,7 +451,8 @@ Service_InitLogging(gboolean haveConsole,
 
       if (g_ascii_strcasecmp(loglevel, SERVICE_LOGLEVEL_NORMAL) == 0) {
          logWantedLevel = DEFAULT_LOG_LEVELS;
-      } else if (g_ascii_strcasecmp(loglevel, SERVICE_LOGLEVEL_VERBOSE) == 0) {
+      } else if ((g_ascii_strcasecmp(loglevel, SERVICE_LOGLEVEL_VERBOSE) == 0) ||
+                 (g_ascii_strcasecmp(loglevel, SERVICE_LOGLEVEL_DEBUG) == 0)) {
          logWantedLevel = DEFAULT_LOG_LEVELS | G_LOG_LEVEL_DEBUG;
          gVerboseLogging = TRUE;
       } else {