more debug
This commit is contained in:
1
app.py
1
app.py
@ -165,6 +165,7 @@ def get_diagnostics():
|
|||||||
if device.get('device_id'):
|
if device.get('device_id'):
|
||||||
logger.debug(f"Fetching diagnostics for device: {device['name']}")
|
logger.debug(f"Fetching diagnostics for device: {device['name']}")
|
||||||
diagnostics[device['name']] = run_diagnostics(device)
|
diagnostics[device['name']] = run_diagnostics(device)
|
||||||
|
logger.debug(f"Returning diagnostics: {diagnostics}")
|
||||||
return jsonify(diagnostics)
|
return jsonify(diagnostics)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error in diagnostics endpoint: {str(e)}")
|
logger.error(f"Error in diagnostics endpoint: {str(e)}")
|
||||||
|
|||||||
Reference in New Issue
Block a user