asterisk/include
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
..
asterisk res_odbc: Add basic query logging. 2019-02-07 08:23:14 -06:00
solaris-compat Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
asterisk.h core: Stop using AST_INLINE_API for allocator functions. 2018-03-17 01:06:33 -04:00
jitterbuf.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00