working notes and tidy
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
@@ -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
|
||||
@@ -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])')/
|
||||
Reference in New Issue
Block a user