aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-11-27 22:02:30 +0000
committerMatthew Wild <mwild1@gmail.com>2010-11-27 22:02:30 +0000
commit6b0142ec836c6ec0094b99ce790d2fc95114df6c (patch)
treeeefaef709c65b54b95b5b2e108892931d9d427e0 /core/storagemanager.lua
parent6a8b60156b40492df82d172c336741f927dfb738 (diff)
downloadprosody-6b0142ec836c6ec0094b99ce790d2fc95114df6c.tar.gz
prosody-6b0142ec836c6ec0094b99ce790d2fc95114df6c.zip
storagemanager: Only show fallback warning if storage was configured to use another backend and it failed
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 3501d2c0..0857baf4 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -66,8 +66,10 @@ 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
+ 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