asterisk/funcs
Joshua Colp 54a912b26d res_odbc: Add basic query logging.
When Asterisk is connected and used with a database the response
time of the database can cause problems in Asterisk if it is long.
Normally the only way to see this problem would be to retrieve a
backtrace from Asterisk and examine where things are blocked, or
examine the database to see if there is any indication of a
problem.

This change adds some basic query logging to make it easier to
investigate such a problem. When logging is enabled res_odbc will
now keep track of the number of queries executed, as well as the
query that has taken the longest time to execute. There is also
an option which will cause a WARNING message to be output if a
query takes longer than a configurable amount of time to execute.

This makes it easier and clearer for users that their database may
be experiencing a problem that could impact Asterisk.

ASTERISK-28277

Change-Id: I173cf4928b10754478a6a8c27dfa96ede0f058a6
2019-02-07 08:23:14 -06:00
..
Makefile Fix GCC 8 build issues. 2018-05-11 09:48:58 -04:00
func_aes.c crypto.h: Repair ./configure --with-ssl=PATH. 2018-06-08 13:01:53 +02:00
func_base64.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_blacklist.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_callcompletion.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
func_callerid.c func_callerid: Remove deprecated CALLERPRES() function. 2018-10-24 09:01:24 -04:00
func_cdr.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
func_channel.c func_channel: Delete dead CHANNEL_TRACE code 2018-03-20 15:58:38 +01:00
func_config.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_curl.c Dialplan functions: Fix some channel autoservice misuse. 2018-06-19 10:56:33 -06:00
func_cut.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_db.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_devstate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_dialgroup.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
func_dialplan.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_enum.c loader: Convert reload_classes to built-in modules. 2018-03-14 05:20:12 -04:00
func_env.c func_env: Compile in Solaris 11. 2018-06-21 12:04:46 +02:00
func_extstate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_frame_trace.c bridge_softmix: Forward TEXT frames 2018-04-17 10:30:23 -06:00
func_global.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_groupcount.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_hangupcause.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
func_holdintercept.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
func_iconv.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_jitterbuffer.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_lock.c astobj2: Remove legacy ao2_container_alloc routine. 2018-11-21 09:56:16 -05:00
func_logic.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_math.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
func_md5.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_module.c Remove ASTERISK_REGISTER_FILE. 2016-10-27 09:53:55 -04:00
func_odbc.c res_odbc: Add basic query logging. 2019-02-07 08:23:14 -06:00
func_periodic_hook.c func_periodic_hook.c: Cleanup module resources on failure. 2018-10-04 14:38:52 -05:00
func_periodic_hook.exports.in Fix error loading res_monitor. 2014-04-23 15:02:39 +00:00
func_pitchshift.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_pjsip_aor.c loader: Add dependency fields to module structures. 2018-01-15 13:25:51 -05:00
func_pjsip_contact.c pjsip: Rewrite OPTIONS support with new eyes. 2018-04-27 17:28:16 -05:00
func_pjsip_endpoint.c loader: Add dependency fields to module structures. 2018-01-15 13:25:51 -05:00
func_presencestate.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_rand.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_realtime.c Dialplan functions: Fix some channel autoservice misuse. 2018-06-19 10:56:33 -06:00
func_sha1.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_shell.c AST-2017-006: Fix app_minivm application MinivmNotify command injection 2017-08-30 18:43:38 +00:00
func_sorcery.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_speex.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_sprintf.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_srv.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_strings.c func_strings: HASHKEY - negative array index can cause corruption 2018-11-19 14:41:57 -05:00
func_sysinfo.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_talkdetect.c modules: change module LOAD_FAILUREs to LOAD_DECLINES 2017-04-12 15:57:21 -06:00
func_timeout.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_uri.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_version.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_vmcount.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
func_volume.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00