mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-12 13:25:14 -05:00
rewrite logger to support custom config files (#3104)
This commit is contained in:
20
mealie/main.py
Normal file
20
mealie/main.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import uvicorn
|
||||
|
||||
from mealie.app import settings
|
||||
from mealie.core.logger.config import log_config
|
||||
|
||||
|
||||
def main():
|
||||
uvicorn.run(
|
||||
"app:app",
|
||||
host=settings.API_HOST,
|
||||
port=settings.API_PORT,
|
||||
log_level=settings.LOG_LEVEL.lower(),
|
||||
log_config=log_config(),
|
||||
workers=1,
|
||||
forwarded_allow_ips=settings.HOST_IP,
|
||||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user