mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
CAPI: Enable selection of SERVER_LEGACY in capi_host_for_galaxy()
Also adds DEBUG logging for the selection.
This commit is contained in:
parent
0523e2289a
commit
9fdf768ce3
11
companion.py
11
companion.py
@ -1080,17 +1080,22 @@ class Session(object):
|
|||||||
"""
|
"""
|
||||||
if self.credentials is None:
|
if self.credentials is None:
|
||||||
# Can't tell if beta or not
|
# Can't tell if beta or not
|
||||||
|
logger.warning("Dropping CAPI request because unclear if game beta or not")
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
if self.credentials['beta']:
|
if self.credentials['beta']:
|
||||||
|
logger.debug(f"Using {SERVER_BETA} because {self.credentials['beta']=}")
|
||||||
return SERVER_BETA
|
return SERVER_BETA
|
||||||
|
|
||||||
if monitor.is_live_galaxy():
|
if monitor.is_live_galaxy():
|
||||||
|
logger.debug(f"Using {SERVER_LIVE} because monitor.is_live_galaxy() was True")
|
||||||
return SERVER_LIVE
|
return SERVER_LIVE
|
||||||
|
|
||||||
# return SERVER_LEGACY # Not Yet
|
else:
|
||||||
logger.warning("Dropping CAPI request because this is the Legacy galaxy, which is not yet supported")
|
logger.debug(f"Using {SERVER_LEGACY} because monitor.is_live_galaxy() was False")
|
||||||
return ""
|
return SERVER_LEGACY
|
||||||
|
|
||||||
|
return ''
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user