Software /
code /
prosody
Diff
core/storagemanager.lua @ 3770:4de73ae45163
storagemanager: Log warning when loading the storage provider plugin fails
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 18 Dec 2010 02:29:33 +0000 |
parent | 3734:ec59071e2a55 |
child | 3774:9189ed18c3c9 |
line wrap: on
line diff
--- a/core/storagemanager.lua Fri Dec 17 22:32:21 2010 +0000 +++ b/core/storagemanager.lua Sat Dec 18 02:29:33 2010 +0000 @@ -46,7 +46,10 @@ 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);