Update utils.py
Browse files
utils.py
CHANGED
|
@@ -2,15 +2,6 @@ import re
|
|
| 2 |
import os
|
| 3 |
import logging
|
| 4 |
|
| 5 |
-
## LOGGING CONFIGURATION
|
| 6 |
-
## -------------------------------------------------------------------------------------------
|
| 7 |
-
# Configure logging to write to a file
|
| 8 |
-
def setup_logging():
|
| 9 |
-
logging.basicConfig(filename='/app.log', level=logging.ERROR)
|
| 10 |
-
|
| 11 |
-
def log_error(message):
|
| 12 |
-
logging.error(message)
|
| 13 |
-
|
| 14 |
## HELPER FUNCTIONS
|
| 15 |
## ------------------------------------------------------------------------------------------
|
| 16 |
# Function to format response received from a FastAPI endpoint
|
|
|
|
| 2 |
import os
|
| 3 |
import logging
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
## HELPER FUNCTIONS
|
| 6 |
## ------------------------------------------------------------------------------------------
|
| 7 |
# Function to format response received from a FastAPI endpoint
|