aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-18 02:29:33 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-18 02:29:33 +0000
commit7e8dff20a6ebf8e7e95665ef08cf50cc434168c2 (patch)
tree65e32a374411c86d4254726ba4bbe0edf82ab8c1 /core/storagemanager.lua
parent54c91de993302778d253a9d760a340a744f01060 (diff)
downloadprosody-7e8dff20a6ebf8e7e95665ef08cf50cc434168c2.tar.gz
prosody-7e8dff20a6ebf8e7e95665ef08cf50cc434168c2.zip
storagemanager: Log warning when loading the storage provider plugin fails
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index e0c12190..3be193a2 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -46,7 +46,10 @@ local function load_driver(host, driver_name)
local driver = stores_available:get(host, driver_name);
if driver then return driver; end
if driver_name ~= "internal" then
- modulemanager.load(host, "storage_"..driver_name);
+ local ok, err = modulemanager.load(host, "storage_"..driver_name);
+ if not ok then
+ log("error", "Failed to load storage driver plugin %s: %s", driver_name, err);
+ end
return stores_available:get(host, driver_name);
else
return setmetatable({host = host}, default_driver_mt);