projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad732d9
)
util.sql: Log debug message when connecting to database
author
Matthew Wild
<mwild1@gmail.com>
Wed, 8 Jul 2015 14:15:32 +0000
(15:15 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Wed, 8 Jul 2015 14:15:32 +0000
(15:15 +0100)
util/sql.lua
patch
|
blob
|
history
diff --git
a/util/sql.lua
b/util/sql.lua
index 6622ad56ad7c81782e4850ccccf8031c4e2429ad..037dbc76b94ed90fd63fd3d9b4a0b4c5575776ee 100644
(file)
--- a/
util/sql.lua
+++ b/
util/sql.lua
@@
-101,6
+101,7
@@
function engine:connect()
local params = self.params;
assert(params.driver, "no driver")
+ log("error", "Connecting to [%s] %s...", params.driver, params.database);
local dbh, err = DBI.Connect(
params.driver, params.database,
params.username, params.password,