From 4e6c8358f87681a67b0bc7ba1ef2d7baf49cbbd5 Mon Sep 17 00:00:00 2001 From: "Peter D. Barnes, Jr." Date: Mon, 28 Oct 2013 15:04:01 -0700 Subject: [PATCH] Logging wildcards: allow "***" as synonym for "*=**" --- RELEASE_NOTES | 3 ++- src/core/model/log.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index ea44ce2d0..e3090780d 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -25,7 +25,8 @@ New user-visible features Use an attribute "EnableBeaconJitter" to enable/disable this feature. - a new FixedRoomPositionAllocator helper class is available, it allows to generate a random position uniformly distributed in the - volume of a chosen room inside a chosen building. + volume of a chosen room inside a chosen building. +- Logging wildcards: allow "***" as synonym for "*=**" to turn on all logging. Bugs fixed ---------- diff --git a/src/core/model/log.cc b/src/core/model/log.cc index 5a83e51a4..8feb7fc09 100644 --- a/src/core/model/log.cc +++ b/src/core/model/log.cc @@ -125,7 +125,7 @@ LogComponent::EnvVarCheck (const std::string & name) if (equal == std::string::npos) { component = tmp; - if (component == myName || component == "*") + if (component == myName || component == "*" || component == "***") { int level = LOG_LEVEL_ALL | LOG_PREFIX_ALL; Enable ((enum LogLevel)level); @@ -485,7 +485,7 @@ static void CheckEnvironmentVariables (void) { // ie no '=' characters found component = tmp; - if (ComponentExists(component) || component == "*") + if (ComponentExists(component) || component == "*" || component == "***") { return; }