Skip to content

Commit

Permalink
Fix logging in container
Browse files Browse the repository at this point in the history
  • Loading branch information
shapovalovts committed Sep 1, 2024
1 parent 7144ff1 commit 473333b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ include = ["swmcloudgate*"]
exclude = ["swmcloudgate.egg-info", "test"]

[tool.setuptools.package-data]
"swmcloudgate" = ["logging.yaml"]
"swmcloudgate.routers.azure.templates" = ["*"]
"swmcloudgate.routers.openstack.templates" = ["*"]

Expand Down
2 changes: 1 addition & 1 deletion swmcloudgate/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def start():
os.chdir(os.path.dirname(my_dir))
uvicorn.run(
"swmcloudgate.main:app",
log_config=f"{my_dir}/swmcloudgate/logging.yaml",
log_config=f"{my_dir}/logging.yaml",
host=socket.gethostname(),
port=8444,
reload=False,
Expand Down

0 comments on commit 473333b

Please sign in to comment.