@@ -230,13 +230,16 @@ def template_view(config, name, route, template, route_kw=None, view_kw=None):
230230
231231
232232def maybe_set (settings , name , envvar , coercer = None , default = None ):
233+ print (name , envvar )
233234 if envvar in os .environ :
234235 value = os .environ [envvar ]
236+ print ("\t " , name , envvar , value )
235237 if coercer is not None :
236238 value = coercer (value )
237239 settings .setdefault (name , value )
238240 elif default is not None :
239241 settings .setdefault (name , default )
242+ print ("\t " , name , envvar , "NOT SET" )
240243
241244
242245def maybe_set_compound (settings , base , name , envvar ):
@@ -405,6 +408,7 @@ def configure(settings=None):
405408 maybe_set (settings , "token.two_factor.secret" , "TOKEN_TWO_FACTOR_SECRET" )
406409 maybe_set (settings , "token.remember_device.secret" , "TOKEN_REMEMBER_DEVICE_SECRET" )
407410 maybe_set_redis (settings , "warehouse.xmlrpc.cache.url" , "REDIS_URL" , db = 4 )
411+ maybe_set (settings , "warehouse.xmlrpc.cache.url" , "XMLRPC_CACHE_URL" )
408412 maybe_set (
409413 settings ,
410414 "warehouse.xmlrpc.client.ratelimit_string" ,
0 commit comments