aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2019-06-14 14:24:03 +0100
committerGravatar Peter Powell2019-06-14 14:40:19 +0100
commit93a4f8178c26b0ae894d2060086f605fe22b0a3e (patch)
tree76f86a62975249d28190a7c57357b3293d921157 /src/modules/extra/m_pgsql.cpp
parentShow the mode syntax in ERR_INVALIDMODEPARAM. (diff)
Log SQL queries at the debug log level.
This makes debugging issues easier.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r--src/modules/extra/m_pgsql.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index aef441e62..3484aeca2 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -418,6 +418,7 @@ restart:
void Submit(SQL::Query *req, const std::string& q) CXX11_OVERRIDE
{
+ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Executing PostgreSQL query: " + q);
if (qinprog.q.empty())
{
DoQuery(QueueItem(req,q));