2022-12-16 Fred Gleason <fredg@paravelsystems.com>

* Added a 'LogSqlQueries=' directive to the '[Debugging]'
	section of rd.conf(5).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-12-16 11:39:03 -05:00
parent ed968656c6
commit f1d2c02862
5 changed files with 36 additions and 1 deletions

View File

@@ -423,6 +423,18 @@ int RDConfig::logLogRefreshLevel() const
}
bool RDConfig::logSqlQueries() const
{
return conf_log_sql_queries;
}
int RDConfig::logSqlQueriesLevel() const
{
return conf_log_sql_queries_level;
}
int RDConfig::meterBasePort() const
{
return conf_meter_base_port;
@@ -655,6 +667,9 @@ bool RDConfig::load()
conf_log_log_refresh_level=
SyslogPriorityLevel(profile->stringValue("Debugging","LogLogRefresh",""),
&conf_log_log_refresh);
conf_log_sql_queries_level=
SyslogPriorityLevel(profile->stringValue("Debugging","LogSqlQueries",""),
&conf_log_sql_queries);
conf_meter_base_port=
profile->intValue("Hacks","MeterPortBaseNumber",RD_DEFAULT_METER_SOCKET_BASE_UDP_PORT);
conf_meter_port_range=
@@ -788,6 +803,8 @@ void RDConfig::clear()
conf_log_search_strings_level=LOG_DEBUG;
conf_log_log_refresh=false;
conf_log_log_refresh_level=LOG_DEBUG;
conf_log_sql_queries=false;
conf_log_sql_queries_level=LOG_DEBUG;
conf_lock_rdairplay_memory=false;
conf_meter_base_port=RD_DEFAULT_METER_SOCKET_BASE_UDP_PORT;
conf_meter_port_range=RD_METER_SOCKET_PORT_RANGE;