Spaces:
Running
Running
Fix log format
Browse files
app.py
CHANGED
|
@@ -14,7 +14,11 @@ import uvicorn
|
|
| 14 |
|
| 15 |
from backends import APISearchResults, APIPatentResults, query_bing_search, query_brave_search, query_ddg_search, query_google_patents
|
| 16 |
|
| 17 |
-
logging.basicConfig(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# playwright global context
|
| 20 |
playwright = None
|
|
|
|
| 14 |
|
| 15 |
from backends import APISearchResults, APIPatentResults, query_bing_search, query_brave_search, query_ddg_search, query_google_patents
|
| 16 |
|
| 17 |
+
logging.basicConfig(
|
| 18 |
+
level=logging.INFO,
|
| 19 |
+
format='[%(asctime)s][%(levelname)s][%(filename)s:%(lineno)d]: %(message)s',
|
| 20 |
+
datefmt='%Y-%m-%d %H:%M:%S'
|
| 21 |
+
)
|
| 22 |
|
| 23 |
# playwright global context
|
| 24 |
playwright = None
|