# HG changeset patch # User Matthew Wild # Date 1290895350 0 # Node ID dc3ccef7898f7fb11b8025c805a778c7213c530b # Parent f8879cee87a29635d482e316a5ae3dc1b6d66582 storagemanager: Only show fallback warning if storage was configured to use another backend and it failed diff -r f8879cee87a2 -r dc3ccef7898f core/storagemanager.lua --- 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