Changeset

3790:23cd998c765b

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 3789:3bd0b625f96e
children 3791:04c7b71ce078
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