We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8454a5 commit 3853764Copy full SHA for 3853764
1 file changed
bin/stashcp
@@ -565,7 +565,10 @@ def get_best_stashcache():
565
if order_str == '':
566
# Unable to find a geo_ip server to use, return random choice from caches!
567
minsite = random.choice(caches_list)
568
+ random.shuffle(caches_list)
569
+ nearest_cache_list = [cache['name'] for cache in caches_list]
570
logging.error("Unable to use Geoip to find closest cache! Returning random cache %s", minsite)
571
+ logging.debug("Ordered list of nearest caches: %s", str(nearest_cache_list))
572
return minsite
573
else:
574
# The order string should be something like:
0 commit comments