From 846b1120ca5cacfc1b906bd24e817318dd9cb364 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 27 Nov 2010 22:02:30 +0000 Subject: storagemanager: Only show fallback warning if storage was configured to use another backend and it failed --- core/storagemanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3