alessandro trinca tornidor
commited on
Commit
·
dd1a1d1
1
Parent(s):
ce62bf6
bug: fix wrong logging occurrence, rename samgis_lisa_on_cuda to samgis_lisa_on_zero
Browse files
app.py
CHANGED
@@ -65,16 +65,16 @@ async def health() -> JSONResponse:
|
|
65 |
import importlib.metadata
|
66 |
from importlib.metadata import PackageNotFoundError
|
67 |
|
68 |
-
core_version = lisa_on_cuda_version =
|
69 |
try:
|
70 |
core_version = importlib.metadata.version('samgis_core')
|
71 |
lisa_on_cuda_version = importlib.metadata.version('lisa-on-cuda')
|
72 |
-
|
73 |
except PackageNotFoundError as pe:
|
74 |
app_logger.error(f"pe:{pe}.")
|
75 |
|
76 |
msg = "still alive, "
|
77 |
-
msg += f"""version:{
|
78 |
msg += f"""lisa-on-cuda version:{lisa_on_cuda_version},"""
|
79 |
|
80 |
app_logger.info(msg)
|
@@ -254,7 +254,7 @@ frontend_builder.build_frontend(
|
|
254 |
)
|
255 |
create_folders_and_variables_if_not_exists.folders_creation()
|
256 |
|
257 |
-
|
258 |
|
259 |
templates = Jinja2Templates(directory="templates")
|
260 |
|
|
|
65 |
import importlib.metadata
|
66 |
from importlib.metadata import PackageNotFoundError
|
67 |
|
68 |
+
core_version = lisa_on_cuda_version = samgis_lisa_on_zero_version = ""
|
69 |
try:
|
70 |
core_version = importlib.metadata.version('samgis_core')
|
71 |
lisa_on_cuda_version = importlib.metadata.version('lisa-on-cuda')
|
72 |
+
samgis_lisa_on_zero_version = importlib.metadata.version('samgis-lisa-on-zero')
|
73 |
except PackageNotFoundError as pe:
|
74 |
app_logger.error(f"pe:{pe}.")
|
75 |
|
76 |
msg = "still alive, "
|
77 |
+
msg += f"""version:{samgis_lisa_on_zero_version}, core version:{core_version},"""
|
78 |
msg += f"""lisa-on-cuda version:{lisa_on_cuda_version},"""
|
79 |
|
80 |
app_logger.info(msg)
|
|
|
254 |
)
|
255 |
create_folders_and_variables_if_not_exists.folders_creation()
|
256 |
|
257 |
+
app_logger.info("build_frontend ok!")
|
258 |
|
259 |
templates = Jinja2Templates(directory="templates")
|
260 |
|