logging: tweak default log levels

This commit is contained in:
Dan Williams
2010-04-06 16:19:30 -07:00
parent 3e8a05d28e
commit 6e97fc4441
2 changed files with 3 additions and 2 deletions

View File

@@ -462,7 +462,7 @@ main (int argc, char *argv[])
{ "plugins", 0, 0, G_OPTION_ARG_STRING, &plugins, "List of plugins separated by ','", "plugin1,plugin2" },
{ "log-level", 0, 0, G_OPTION_ARG_STRING, &log_level, "Log level: one of [ERR, WARN, INFO, DEBUG]", "INFO" },
{ "log-domain", 0, 0, G_OPTION_ARG_STRING, &log_domains,
"Log domains separated by ',': any combination of [HW,RKILL,ETHER,WIFI,BT,MB,DHCP4,DHCP6,PPP,WIFI_SCAN,IP4,IP6,AUTOIP4,DNS,VPN,SHARING,SUPPLICANT,USER_SET,SYS_SET,SUSPEND,CORE]",
"Log domains separated by ',': any combination of [NONE,HW,RKILL,ETHER,WIFI,BT,MB,DHCP4,DHCP6,PPP,WIFI_SCAN,IP4,IP6,AUTOIP4,DNS,VPN,SHARING,SUPPLICANT,USER_SET,SYS_SET,SUSPEND,CORE]",
"HW,RFKILL,WIFI" },
{NULL}
};

View File

@@ -39,7 +39,7 @@
#include "nm-utils.h"
static guint32 log_level = LOGL_INFO;
static guint32 log_domains = LOGD_CORE | LOGD_HW;
static guint32 log_domains = LOGD_CORE | LOGD_HW | LOGD_RFKILL | LOGD_SUSPEND;
typedef struct {
guint32 num;
@@ -55,6 +55,7 @@ static const LogDesc level_descs[] = {
};
static const LogDesc domain_descs[] = {
{ LOGD_NONE, "NONE" },
{ LOGD_HW, "HW" },
{ LOGD_RFKILL, "RFKILL" },
{ LOGD_ETHER, "ETHER" },