-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* simplified log output * set root log level to debug. disabled sql engine echo * updated gitignore * Hypercorn (#35) * runs w gunicorn * updated starter script * uvicorn logs now collected in uvicorn.log file * added log conf * added host option * misc updates * hypercorn implementation works yay * logs shoowing up in /tmp * updated log conf * now logs to files in local dir * removed guincorn start script and renamed other script to start_app * updated deps
- Loading branch information
Showing
10 changed files
with
338 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[loggers] | ||
keys=root, hypercorn.error, hypercorn.access | ||
|
||
[handlers] | ||
keys=console, error_file, access_file | ||
|
||
[formatters] | ||
keys=generic, access | ||
|
||
[logger_root] | ||
level=DEBUG | ||
handlers=console | ||
|
||
[logger_hypercorn.error] | ||
level=INFO | ||
handlers=error_file | ||
propagate=1 | ||
qualname=hypercorn.error | ||
|
||
[logger_hypercorn.access] | ||
level=DEBUG | ||
handlers=access_file | ||
propagate=0 | ||
qualname=hypercorn.access | ||
|
||
[handler_console] | ||
class=StreamHandler | ||
formatter=generic | ||
args=(sys.stdout, ) | ||
|
||
[handler_error_file] | ||
class=logging.FileHandler | ||
formatter=generic | ||
args=('hypercorn.error.log',) | ||
|
||
[handler_access_file] | ||
class=logging.FileHandler | ||
formatter=access | ||
args=('hypercorn.access.log',) | ||
|
||
[formatter_generic] | ||
format=%(asctime)s [%(process)d] [%(levelname)s] %(message)s | ||
datefmt=%Y-%m-%d %H:%M:%S | ||
class=logging.Formatter | ||
|
||
[formatter_access] | ||
format=%(message)s | ||
class=logging.Formatter |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
from beartype.claw import beartype_this_package # <-- this is boring, but... | ||
|
||
beartype_this_package() # <-- the fast way | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters