mirror of
https://github.com/g4klx/DAPNETGateway.git
synced 2026-08-26 12:32:45 -04:00
Optionally suppress time messages when messages are being queued.
This commit is contained in:
parent
25d431ba14
commit
88eacf7422
5 changed files with 39 additions and 24 deletions
9
Conf.cpp
9
Conf.cpp
|
|
@ -48,6 +48,7 @@ m_logFileRoot(),
|
|||
m_dapnetAddress(),
|
||||
m_dapnetPort(0U),
|
||||
m_dapnetAuthKey(),
|
||||
m_dapnetSuppressTime(true),
|
||||
m_dapnetDebug(false)
|
||||
{
|
||||
}
|
||||
|
|
@ -118,6 +119,8 @@ bool CConf::read()
|
|||
m_dapnetPort = (unsigned int)::atoi(value);
|
||||
else if (::strcmp(key, "AuthKey") == 0)
|
||||
m_dapnetAuthKey = value;
|
||||
else if (::strcmp(key, "SuppressTimeWhenBusy") == 0)
|
||||
m_dapnetSuppressTime = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
m_dapnetDebug = ::atoi(value) == 1;
|
||||
}
|
||||
|
|
@ -193,7 +196,13 @@ std::string CConf::getDAPNETAuthKey() const
|
|||
return m_dapnetAuthKey;
|
||||
}
|
||||
|
||||
bool CConf::getDAPNETSuppressTime() const
|
||||
{
|
||||
return m_dapnetSuppressTime;
|
||||
}
|
||||
|
||||
bool CConf::getDAPNETDebug() const
|
||||
{
|
||||
return m_dapnetDebug;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue