Software /
code /
prosody
Changeset
3662:dc3ccef7898f
storagemanager: Only show fallback warning if storage was configured to use another backend and it failed
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 27 Nov 2010 22:02:30 +0000 |
parents | 3661:f8879cee87a2 |
children | 3663:300ae72fd692 |
files | core/storagemanager.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/storagemanager.lua Sat Nov 27 21:57:20 2010 +0000 +++ b/core/storagemanager.lua Sat Nov 27 22:02:30 2010 +0000 @@ -66,8 +66,10 @@ driver_name = config.get(host, "core", "default_storage"); driver = load_driver(host, driver_name); if not driver then + if storage or driver_name then + log("warn", "Falling back to default driver for %s storage on %s", store, host); + end driver_name = "internal"; - log("warn", "Falling back to default driver for %s storage on %s", store, host); driver = load_driver(host, driver_name); end end