mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-17 21:00:20 +00:00
fix: enable reload to debug errors
This commit is contained in:
1 parent
3df8b14a40
commit
ef4aa3eef8
2 files changed
+2
-2
No files matched your search
@@ -21,4 +21,4 @@ app.include_router(router=router)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
uvicorn.run(app, host="0.0.0.0", port=8191, log_level=LOG_LEVEL) # noqa: S104
|
||||
uvicorn.run(app, host="0.0.0.0", port=8191, log_level=LOG_LEVEL, reload=True) # noqa: S104
|
||||
+1
-1
@@ -46,4 +46,4 @@ def get_sb(
|
||||
|
||||
def save_screenshot(sb: BaseCase):
|
||||
"""Save screenshot on HTTPException."""
|
||||
sb.save_screenshot(f"screenshots/{strftime('%Y-%m-%d %H:%M:%S', gmtime())}.png")
|
||||
sb.save_screenshot(f"screenshots_{strftime('%Y-%m-%d %H:%M:%S', gmtime())}.png")
|
||||
Reference in new issue
Block a user