deploy: update habadashi_login
Browse files
app.py
CHANGED
|
@@ -10,14 +10,7 @@ import time
|
|
| 10 |
import traceback
|
| 11 |
import logging
|
| 12 |
|
| 13 |
-
|
| 14 |
-
def filter(self, record):
|
| 15 |
-
msg = record.getMessage()
|
| 16 |
-
if '"GET ' in msg and '" 200' in msg:
|
| 17 |
-
return False
|
| 18 |
-
return True
|
| 19 |
-
|
| 20 |
-
logging.getLogger("uvicorn.access").addFilter(_SuppressGet200Filter())
|
| 21 |
from pathlib import Path
|
| 22 |
from fastapi import FastAPI, Request, Depends, HTTPException
|
| 23 |
from fastapi.responses import RedirectResponse, JSONResponse
|
|
|
|
| 10 |
import traceback
|
| 11 |
import logging
|
| 12 |
|
| 13 |
+
logging.getLogger("uvicorn.access").setLevel(logging.WARNING)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
from pathlib import Path
|
| 15 |
from fastapi import FastAPI, Request, Depends, HTTPException
|
| 16 |
from fastapi.responses import RedirectResponse, JSONResponse
|