Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
3769:9338d0785277 | 3770:4de73ae45163 |
---|---|
44 return; | 44 return; |
45 end | 45 end |
46 local driver = stores_available:get(host, driver_name); | 46 local driver = stores_available:get(host, driver_name); |
47 if driver then return driver; end | 47 if driver then return driver; end |
48 if driver_name ~= "internal" then | 48 if driver_name ~= "internal" then |
49 modulemanager.load(host, "storage_"..driver_name); | 49 local ok, err = modulemanager.load(host, "storage_"..driver_name); |
50 if not ok then | |
51 log("error", "Failed to load storage driver plugin %s: %s", driver_name, err); | |
52 end | |
50 return stores_available:get(host, driver_name); | 53 return stores_available:get(host, driver_name); |
51 else | 54 else |
52 return setmetatable({host = host}, default_driver_mt); | 55 return setmetatable({host = host}, default_driver_mt); |
53 end | 56 end |
54 end | 57 end |