Logging wildcards: allow "***" as synonym for "*=**"
This commit is contained in:
@@ -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
|
||||
----------
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user