Comparison

util/sql.lua @ 6765:0cbb09afa5c3

util.sql: Fix log level of debug message
author Matthew Wild <mwild1@gmail.com>
date Wed, 08 Jul 2015 15:16:17 +0100
parent 6764:9f2b1e0bba90
child 6766:b38db4b634d3
comparison
equal deleted inserted replaced
6764:9f2b1e0bba90 6765:0cbb09afa5c3
99 function engine:connect() 99 function engine:connect()
100 if self.conn then return true; end 100 if self.conn then return true; end
101 101
102 local params = self.params; 102 local params = self.params;
103 assert(params.driver, "no driver") 103 assert(params.driver, "no driver")
104 log("error", "Connecting to [%s] %s...", params.driver, params.database); 104 log("debug", "Connecting to [%s] %s...", params.driver, params.database);
105 local dbh, err = DBI.Connect( 105 local dbh, err = DBI.Connect(
106 params.driver, params.database, 106 params.driver, params.database,
107 params.username, params.password, 107 params.username, params.password,
108 params.host, params.port 108 params.host, params.port
109 ); 109 );