mod_debug_sql
This module enables extra verbose debug logging of all SQL queries done by Prosody, which is useful when debugging SQL-related problems.
= {
modules_enabled -- other modules etc
"debug_sql";
}
= {
log = "/var/log/prosody/prosody.log"
debug }
= "sql" storage
Make sure to enable debug logging.