Skip to content

Commit

Permalink
now logs to files in local dir
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed Jul 16, 2024
1 parent 6653c20 commit 24ff2e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ args=(sys.stdout, )
[handler_error_file]
class=logging.FileHandler
formatter=generic
args=('/tmp/hypercorn.error.log',)
args=('hypercorn.error.log',)

[handler_access_file]
class=logging.FileHandler
formatter=access
args=('/tmp/hypercorn.access.log',)
args=('hypercorn.access.log',)

[formatter_generic]
format=%(asctime)s [%(process)d] [%(levelname)s] %(message)s
Expand Down
2 changes: 1 addition & 1 deletion scripts/start_dev.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# poetry run uvicorn src.smolvault.main:app --log-config=log_conf.yaml --host 0.0.0.0 --server-header --timeout-keep-alive=120
poetry run hypercorn src.smolvault.main:app -b 0.0.0.0 --debug --log-config=logging.conf --log-level=DEBUG --access-logfile=access.log --error-logfile=error.log --keep-alive=120 --workers=1
poetry run hypercorn src.smolvault.main:app -b 0.0.0.0 --debug --log-config=logging.conf --log-level=DEBUG --access-logfile=hypercorn.access.log --error-logfile=hypercorn.error.log --keep-alive=120 --workers=1

0 comments on commit 24ff2e3

Please sign in to comment.