Bump infinity to v0.5.0-dev5 (#3520)
### What problem does this PR solve? Bump infinity to v0.5.0-dev5 ### Type of change - [x] Refactoring
This commit is contained in:
@@ -98,10 +98,10 @@ def status():
|
||||
res = {}
|
||||
st = timer()
|
||||
try:
|
||||
res["doc_store"] = settings.docStoreConn.health()
|
||||
res["doc_store"]["elapsed"] = "{:.1f}".format((timer() - st) * 1000.0)
|
||||
res["doc_engine"] = settings.docStoreConn.health()
|
||||
res["doc_engine"]["elapsed"] = "{:.1f}".format((timer() - st) * 1000.0)
|
||||
except Exception as e:
|
||||
res["doc_store"] = {
|
||||
res["doc_engine"] = {
|
||||
"type": "unknown",
|
||||
"status": "red",
|
||||
"elapsed": "{:.1f}".format((timer() - st) * 1000.0),
|
||||
|
||||
@@ -63,9 +63,10 @@ CONFIGS = read_config()
|
||||
|
||||
|
||||
def show_configs():
|
||||
logging.info(f"Current configs, from {conf_realpath(SERVICE_CONF)}:")
|
||||
msg = f"Current configs, from {conf_realpath(SERVICE_CONF)}:"
|
||||
for k, v in CONFIGS.items():
|
||||
logging.info(f"{k}: {v}")
|
||||
msg += f"\n\t{k}: {v}"
|
||||
logging.info(msg)
|
||||
|
||||
|
||||
def get_base_config(key, default=None):
|
||||
@@ -253,7 +254,7 @@ def get_lan_ip():
|
||||
try:
|
||||
ip = get_interface_ip(ifname)
|
||||
break
|
||||
except IOError as e:
|
||||
except IOError:
|
||||
pass
|
||||
return ip or ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user