Diff

plugins/mod_storage_sql.lua @ 13611:3a23116cf063

mod_storage_sql: Remove the word 'error' from debug messages The word 'error' anywhere, especially in harmless debug messages, are too often interpreted as fatal errors my some users, so best avoid that word. These look too scary as it is, being tracebacks.
author Kim Alvefur <zash@zash.se>
date Wed, 08 Jan 2025 22:30:30 +0100
parent 13318:4a437dd62cc9
child 13633:6b84d11aa09b
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua	Wed Jan 08 20:37:35 2025 +0000
+++ b/plugins/mod_storage_sql.lua	Wed Jan 08 22:30:30 2025 +0100
@@ -14,11 +14,11 @@
 local have_dbisql, dbisql = pcall(require, "prosody.util.sql");
 local have_sqlite, sqlite = pcall(require, "prosody.util.sqlite3");
 if not have_dbisql then
-	module:log("debug", "Could not load LuaDBI, error was: %s", dbisql)
+	module:log("debug", "Could not load LuaDBI: %s", dbisql)
 	dbisql = nil;
 end
 if not have_sqlite then
-	module:log("debug", "Could not load LuaSQLite3, error was: %s", sqlite)
+	module:log("debug", "Could not load LuaSQLite3: %s", sqlite)
 	sqlite = nil;
 end
 if not (have_dbisql or have_sqlite) then