Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,14 +6,11 @@ import requests
|
|
| 6 |
import json
|
| 7 |
import concurrent.futures
|
| 8 |
|
| 9 |
-
# 配置日志
|
| 10 |
logging.basicConfig(
|
| 11 |
level=logging.INFO,
|
| 12 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
| 13 |
-
handlers=[
|
| 14 |
-
logging.StreamHandler(),
|
| 15 |
-
logging.FileHandler('app.log', encoding='utf-8')
|
| 16 |
-
]
|
| 17 |
)
|
| 18 |
logger = logging.getLogger(__name__)
|
| 19 |
|
|
|
|
| 6 |
import json
|
| 7 |
import concurrent.futures
|
| 8 |
|
| 9 |
+
# 配置日志 - 只使用控制台输出,避免文件权限问题
|
| 10 |
logging.basicConfig(
|
| 11 |
level=logging.INFO,
|
| 12 |
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
|
| 13 |
+
handlers=[logging.StreamHandler()]
|
|
|
|
|
|
|
|
|
|
| 14 |
)
|
| 15 |
logger = logging.getLogger(__name__)
|
| 16 |
|