mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T723 [xswiftbus] Expose configuration for render phase debug messages
This commit is contained in:
@@ -59,6 +59,7 @@ namespace XSwiftBus
|
||||
if (stringCompareCaseInsensitive(key, "dbusMode")) { valid = parseDBusMode(value); }
|
||||
else if (stringCompareCaseInsensitive(key, "dbusAddress")) { valid = parseDBusAddress(value); }
|
||||
else if (stringCompareCaseInsensitive(key, "dbusPort")) { valid = parseDBusPort(value); }
|
||||
else if (stringCompareCaseInsensitive(key, "debug")) { valid = parseDebug(value); }
|
||||
else
|
||||
{
|
||||
WARNING_LOG("xswiftbus.conf line " + std::to_string(lineNo) + ": Unknown variable " + value + "!");
|
||||
@@ -115,6 +116,19 @@ namespace XSwiftBus
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CConfig::parseDebug(const std::string &value)
|
||||
{
|
||||
if (stringCompareCaseInsensitive(value, "on"))
|
||||
{
|
||||
m_debug = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_debug = false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string CConfig::dbusModeToString(DBusMode mode)
|
||||
{
|
||||
switch (mode)
|
||||
|
||||
Reference in New Issue
Block a user