Skip to content

Commit

Permalink
enable error and access logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Apr 1, 2024
1 parent 182243c commit f0ed265
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"cSpell.words": [
"accesslog",
"azuretools",
"cssless",
"devcontainer",
"hykin",
"hypercorn",
"Instapundit",
"JSONIFY",
"langchain",
Expand Down
6 changes: 5 additions & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,9 @@ async def widget(widget_name):
else:
from hypercorn.config import Config
from hypercorn.asyncio import serve
config = Config(bind=f"0.0.0.0:{port}")
config = Config()
config.accesslog="-"
config.errorlog="-"
config.loglevel="DEBUG"
config.bind = f"0.0.0.0:{port}"
print(asyncio.run(serve(app, config)))

0 comments on commit f0ed265

Please sign in to comment.