chores/output log file
This commit is contained in:
parent
e5ff7cfe86
commit
5f76f7894c
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ app = FastAPI(
|
|||
|
||||
logger.remove()
|
||||
logger.add(sys.stdout, level="DEBUG" if DEBUG else "INFO")
|
||||
logger.add("output.log", level="DEBUG")
|
||||
|
||||
@app.get("/")
|
||||
async def index():
|
||||
|
|
Loading…
Reference in a new issue