Comparison

core/storagemanager.lua @ 4075:c082ded3b5f1

storagemanager: Log host in message when loading storage provider fails
author Matthew Wild <mwild1@gmail.com>
date Thu, 06 Jan 2011 13:54:37 +0000
parent 3893:475fc383527d
child 4010:21311bd31f6b
comparison
equal deleted inserted replaced
4074:d2c9d9f569f9 4075:c082ded3b5f1
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 local ok, err = modulemanager.load(host, "storage_"..driver_name); 49 local ok, err = modulemanager.load(host, "storage_"..driver_name);
50 if not ok then 50 if not ok then
51 log("error", "Failed to load storage driver plugin %s: %s", driver_name, err); 51 log("error", "Failed to load storage driver plugin %s on %s: %s", driver_name, host, err);
52 end 52 end
53 return stores_available:get(host, driver_name); 53 return stores_available:get(host, driver_name);
54 else 54 else
55 return setmetatable({host = host}, default_driver_mt); 55 return setmetatable({host = host}, default_driver_mt);
56 end 56 end