Software /
code /
prosody
Comparison
core/storagemanager.lua @ 3662:dc3ccef7898f
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 |
parent | 3661:f8879cee87a2 |
child | 3727:1bbd655975ca |
comparison
equal
deleted
inserted
replaced
3661:f8879cee87a2 | 3662:dc3ccef7898f |
---|---|
64 local driver = load_driver(host, driver_name); | 64 local driver = load_driver(host, driver_name); |
65 if not driver then | 65 if not driver then |
66 driver_name = config.get(host, "core", "default_storage"); | 66 driver_name = config.get(host, "core", "default_storage"); |
67 driver = load_driver(host, driver_name); | 67 driver = load_driver(host, driver_name); |
68 if not driver then | 68 if not driver then |
69 if storage or driver_name then | |
70 log("warn", "Falling back to default driver for %s storage on %s", store, host); | |
71 end | |
69 driver_name = "internal"; | 72 driver_name = "internal"; |
70 log("warn", "Falling back to default driver for %s storage on %s", store, host); | |
71 driver = load_driver(host, driver_name); | 73 driver = load_driver(host, driver_name); |
72 end | 74 end |
73 end | 75 end |
74 | 76 |
75 local ret, err = driver:open(store, typ); | 77 local ret, err = driver:open(store, typ); |