Software /
code /
prosody
Changeset
3893:475fc383527d
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 | 3892:070d04b56a48 |
children | 3894:22368fbb71dd |
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";