Repository: cylc/cylc-uiserver (language: python)

Issue:
Log any cat-log failure when listing log files
When trying to set up `cylc hub`, Dave encountered cat-log problems which were swallowed by the UIS. This PR ensures any such errors are logged.

**Check List**

- [x] I have read `CONTRIBUTING.md` and added my name as a Code Contributor.
- [x] Contains logically grouped changes (else tidy your branch by rebase).
- [x] Does not contain off-topic changes (use other PRs for other changes).
- [x] Tests are not needed
- [x] No changelog entry needed as minor
- [x] No docs needed
- [x] If this is a bug fix, PR should be raised against the relevant `?.?.x` branch.



Discussion / hints:
I'm inclined to say no automated tests are needed for this
I realised that there are a few ways `cat-log` will exit non-zero when navigating in the UI (e.g. navigating to `/log/non-exist`), so have settled for just logging the stderr and returning an empty list as before

Fix patch:
diff --git a/changes.d/607.fix.md b/changes.d/607.fix.md
new file mode 100644
index 00000000..ba5320f4
--- /dev/null
+++ b/changes.d/607.fix.md
@@ -0,0 +1,1 @@
+Log any errors when trying to list the workflow/job log files in the UI.
diff --git a/pyproject.toml b/pyproject.toml
index 9a583248..8eb18055 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,6 +16,7 @@ template = "changes.d/changelog-template.jinja"
 underlines = ["", "", ""]
 title_format = "## cylc-uiserver-{version} (Released {project_date})"
 issue_format = "[#{issue}](https://github.com/cylc/cylc-uiserver/pull/{issue})"
+ignore = ["changelog-template.jinja"]
 
 # These changelog sections will be shown in the defined order:
 [[tool.towncrier.type]]
diff --git a/setup.cfg b/setup.cfg
index e2287d34..dc854014 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -102,7 +102,7 @@ tests =
     pytest-tornasync>=0.5.0
     # https://github.com/pytest-dev/pytest/issues/12263
     pytest>=6,<8.2
-    towncrier>=23
+    towncrier>=24.7.0
     types-setuptools
     types-requests>2
 all =


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 4236335d..d09123ae 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -79,8 +79,7 @@ jobs:
         run: mypy
 
       - name: Check changelog
-        if: startsWith(matrix.os, 'ubuntu')
-        run: towncrier build --draft
+        uses: cylc/release-actions/towncrier-draft@v1
 
       - name: Test
         run: pytest