diff --git a/logging-granian.json b/logging-granian.json deleted file mode 100644 index dea9e6b..0000000 --- a/logging-granian.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "version": 1, - "disable_existing_loggers": false, - "formatters": { - "default": { - "()": "logging.Formatter", - "fmt": "[%(process)d|%(name)-12s] %(message)s" - } - }, - "handlers": { - "access": { - "class": "app.utils.logging.RichConsoleHandler", - "omit_repeated_times": true, - "show_time": false, - "enable_link_path": false, - "tracebacks_show_locals": true, - "rich_tracebacks": true, - "formatter": "default", - "width": 140, - "style": "yellow" - }, - "sqlalchemy": { - "class": "app.utils.logging.RichConsoleHandler", - "omit_repeated_times": true, - "show_time": false, - "enable_link_path": false, - "tracebacks_show_locals": true, - "rich_tracebacks": true, - "formatter": "default", - "width": 140, - "style": "magenta" - }, - "stream": { - "class": "app.utils.logging.RichConsoleHandler", - "omit_repeated_times": true, - "show_time": false, - "enable_link_path": false, - "tracebacks_show_locals": true, - "rich_tracebacks": true, - "formatter": "default", - "width": 140, - "style": "white" - } - }, - "loggers": { - "_granian": { - "handlers": [ - "stream" - ], - "propagate": false, - "level": "DEBUG" - }, - "granian.access": { - "handlers": [ - "access" - ], - "propagate": false, - "level": "DEBUG", - "qualname": "granian.access" - }, - "sqlalchemy.engine.Engine": { - "handlers": [ - "sqlalchemy" - ], - "level": "ERROR", - "propagate": false, - "qualname": "sqlalchemy.engine.Engine" - } - } -} \ No newline at end of file diff --git a/logging-uvicorn.json b/logging-uvicorn.json deleted file mode 100644 index 50d8719..0000000 --- a/logging-uvicorn.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "version": 1, - "disable_existing_loggers": false, - "formatters": { - "default": { - "()": "logging.Formatter", - "fmt": "[%(process)d|%(name)-12s] %(message)s" - } - }, - "handlers": { - "uvicorn": { - "class": "app.utils.logging.RichConsoleHandler", - "omit_repeated_times": true, - "show_time": false, - "enable_link_path": false, - "tracebacks_show_locals": true, - "rich_tracebacks": true, - "formatter": "default", - "width": 140, - "style": "yellow" - }, - "sqlalchemy": { - "class": "app.utils.logging.RichConsoleHandler", - "omit_repeated_times": true, - "show_time": false, - "enable_link_path": false, - "tracebacks_show_locals": true, - "rich_tracebacks": true, - "formatter": "default", - "width": 140, - "style": "magenta" - }, - "stream": { - "class": "app.utils.logging.RichConsoleHandler", - "omit_repeated_times": true, - "show_time": false, - "enable_link_path": false, - "tracebacks_show_locals": true, - "rich_tracebacks": true, - "formatter": "default", - "width": 140, - "style": "white" - } - }, - "loggers": { - "root": { - "handlers": [ - "stream" - ], - "propagate": false, - "level": "TRACE" - }, - "uvicorn.access": { - "handlers": [ - "uvicorn" - ], - "propagate": false, - "level": "TRACE", - "qualname": "uvicorn.access" - }, - "sqlalchemy.engine.Engine": { - "handlers": [ - "sqlalchemy" - ], - "level": "ERROR", - "propagate": false, - "qualname": "sqlalchemy.engine.Engine" - } - } -} \ No newline at end of file diff --git a/valkey-compose.yml b/valkey-compose.yml index 07a8204..0ee4f6b 100644 --- a/valkey-compose.yml +++ b/valkey-compose.yml @@ -7,10 +7,8 @@ services: - .secrets command: bash -c " uvicorn app.main:app - --log-config ./logging-uvicorn.json --host 0.0.0.0 --port 8080 --lifespan=on --use-colors --loop uvloop --http httptools - --reload --log-level debug " volumes: - .:/home/code