# HG changeset patch # User Matthew Wild # Date 1292683485 0 # Node ID 9189ed18c3c9a19bc21757272c256d25845324b3 # Parent 2e15808243f3ea69daa89d38d02c72f3bff23c12 storagemanager: Don't always show fallback warning when using per-store config diff -r 2e15808243f3 -r 9189ed18c3c9 core/storagemanager.lua --- a/core/storagemanager.lua Sat Dec 18 04:02:28 2010 +0000 +++ b/core/storagemanager.lua Sat Dec 18 14:44:45 2010 +0000 @@ -71,7 +71,8 @@ driver_name = config.get(host, "core", "default_storage"); driver = load_driver(host, driver_name); if not driver then - if storage or driver_name then + if driver_name or (type(storage) == "string" + or type(storage) == "table" and storage[store]) then log("warn", "Falling back to default driver for %s storage on %s", store, host); end driver_name = "internal";