working notes and tidy

This commit is contained in:
2025-04-06 02:48:11 +10:30
parent 7d4862bf4c
commit 1e323a1a98
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ app.register_blueprint(ui_bp)
@app.before_request
def assign_request_id():
g.request_id = str(uuid.uuid4()) # Generate a unique request ID
logger.info(f"Assigned request ID: {g.request_id} for {request.path}")
# logger.info(f"Assigned request ID: {g.request_id} for {request.path}")
@app.after_request
def log_request_id(response):
+8
View File
@@ -210,3 +210,11 @@ Output:
volume_id: {volumeID}
Create a volume on ceph from a ceph-nvme image
---------
todo
---
Make the worker connect to websocket before staring libvirt\docker monitors
When initlaising the logger enginer(From websocket\worker or api) add an oiptional default off vairable to add request ID to the output
+1
View File
@@ -10,6 +10,7 @@ flask_sqlalchemy
flask_migrate
websocket-client
streamlit
aiohttp
#sudo apt install python3-rados python3-rbd librados-dev librbd-dev
# ln -s /usr/lib/python3/dist-packages/rados* $(python -c 'import site; print(site.getsitepackages()[0])')/
# ln -s /usr/lib/python3/dist-packages/rbd* $(python -c 'import site; print(site.getsitepackages()[0])')/
View File