christopi commited on
Update server.py
Browse files
services/dashboard/server.py
CHANGED
|
@@ -99,7 +99,7 @@ def _send_data_to_dashboard(
|
|
| 99 |
logger.warning(f"Failed to send {task_type} data. Status code: {response.status_code}")
|
| 100 |
|
| 101 |
except requests.exceptions.RequestException as e:
|
| 102 |
-
logger.error(f"Request error for {task_type}
|
| 103 |
|
| 104 |
if attempt < max_retries - 1:
|
| 105 |
logger.info(f"Retrying {task_type} data in 2 seconds...")
|
|
@@ -168,4 +168,4 @@ def main():
|
|
| 168 |
|
| 169 |
|
| 170 |
if __name__ == "__main__":
|
| 171 |
-
main()
|
|
|
|
| 99 |
logger.warning(f"Failed to send {task_type} data. Status code: {response.status_code}")
|
| 100 |
|
| 101 |
except requests.exceptions.RequestException as e:
|
| 102 |
+
logger.error(f"Request error for {task_type}. Check dashboard configuration")
|
| 103 |
|
| 104 |
if attempt < max_retries - 1:
|
| 105 |
logger.info(f"Retrying {task_type} data in 2 seconds...")
|
|
|
|
| 168 |
|
| 169 |
|
| 170 |
if __name__ == "__main__":
|
| 171 |
+
main()
|