Diff

plugins/mod_storage_sql.lua @ 7175:3e7c69190193

mod_storage_sql: Remove debug logging of archive queries
author Kim Alvefur <zash@zash.se>
date Sun, 21 Feb 2016 19:29:00 +0100
parent 7173:d8c060615aa1
child 7178:5953f415c815
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Sun Feb 21 19:25:01 2016 +0100
+++ b/plugins/mod_storage_sql.lua	Sun Feb 21 19:29:00 2016 +0100
@@ -275,7 +275,6 @@
 		end
 
 		sql_query = sql_query:format(t_concat(where, " AND "), query.reverse and "DESC" or "ASC", query.limit and " LIMIT ?" or "");
-		module:log("debug", sql_query);
 		return engine:select(sql_query, unpack(args));
 	end);
 	if not ok then return ok, result end
@@ -301,7 +300,6 @@
 		archive_where(query, args, where);
 		archive_where_id_range(query, args, where);
 		sql_query = sql_query:format(t_concat(where, " AND "));
-		module:log("debug", sql_query);
 		return engine:delete(sql_query, unpack(args));
 	end);
 end