Software /
code /
prosody
Changeset
3774:9189ed18c3c9
storagemanager: Don't always show fallback warning when using per-store config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 18 Dec 2010 14:44:45 +0000 |
parents | 3773:2e15808243f3 |
children | 3775:f3f2a7810108 |
files | core/storagemanager.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/storagemanager.lua Sat Dec 18 04:02:28 2010 +0000 +++ b/core/storagemanager.lua Sat Dec 18 14:44:45 2010 +0000 @@ -71,7 +71,8 @@ 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";