aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-18 14:44:45 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-18 14:44:45 +0000
commit18f5651ba302d1c98a470d81e671064ee8f78e3c (patch)
tree0f94c22486d819d9e5ff3fb0db687c6034bedaa4 /core/storagemanager.lua
parent7b6dc4fed922929c91ef02cbca2476b0bc09c00f (diff)
downloadprosody-18f5651ba302d1c98a470d81e671064ee8f78e3c.tar.gz
prosody-18f5651ba302d1c98a470d81e671064ee8f78e3c.zip
storagemanager: Don't always show fallback warning when using per-store config
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 3be193a2..43409960 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -71,7 +71,8 @@ function open(host, store, typ)
driver_name = config.get(host, "core", "default_storage");
driver = load_driver(host, driver_name);
if not driver then
- if storage or driver_name then
+ if driver_name or (type(storage) == "string"
+ or type(storage) == "table" and storage[store]) then
log("warn", "Falling back to default driver for %s storage on %s", store, host);
end
driver_name = "internal";