Skip to content

Commit

Permalink
Merge pull request #41 from lsst-sqre/tickets/DM-44278
Browse files Browse the repository at this point in the history
tickets/DM-44278: create path to logging directory if needed
  • Loading branch information
athornton committed May 9, 2024
2 parents d2959b2 + 8125e18 commit 67d807c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ Find changes for the upcoming release in the project's [changelog.d directory](h

<!-- scriv-insert-here -->

<a id='changelog-0.5.3'></a>
## 0.5.3 (2024-05-09)

### New features

- Add RSPClient, a configured HTTP client for services in the same RSP instance.

### Bug fixes

- If the path to the logging profile directory doesn't exist, create it.

<a id='changelog-0.5.2'></a>
## 0.5.2 (2024-04-22)

Expand Down
7 changes: 0 additions & 7 deletions changelog.d/20240505_121808_athornton.md

This file was deleted.

3 changes: 3 additions & 0 deletions src/lsst/rsp/startup/services/labrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ def _copy_logging_profile(self) -> None:
)
copy = True
if copy:
pdir = user_profile.parent
if not pdir:
pdir.mkdir(parents=True)
user_profile.write_bytes(
(TOP_DIR_PATH / "jupyterlab" / "20-logging.py").read_bytes()
)
Expand Down

0 comments on commit 67d807c

Please sign in to comment.