Skip to content

Commit

Permalink
Audit: Better messages
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 11, 2024
1 parent 102e556 commit c64c62b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \
RUN --mount=type=cache,target=/var/lib/apt/lists \
--mount=type=cache,target=/var/cache,sharing=locked \
apt-get update \
&& apt-get install --assume-yes --no-install-recommends libproj-dev pkgconf libcairo2-dev
&& apt-get install --assume-yes --no-install-recommends libproj-dev pkgconf libcairo2-dev libgraphviz-dev

# From c2cwsgiutils

Expand Down
4 changes: 2 additions & 2 deletions github_app_geo_project/module/audit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ async def _process_snyk_dpkg(
)
message = module_utils.ansi_proc_message(proc)
if proc.returncode != 0:
message.title = "Error while setting the Python version"
message.title = f"Error while setting the Python version to {python_version}"
_LOGGER.error(message)
else:
message.title = "Setting the Python version"
message.title = f"Setting the Python version to {python_version}"
_LOGGER.debug(message)

result, body, short_message, new_success = await audit_utils.snyk(
Expand Down
2 changes: 1 addition & 1 deletion github_app_geo_project/module/audit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async def snyk(
result.append(message)
else:
message.title = f"Dependencies installed from {file}"
_LOGGER.debug(message)
_LOGGER.debug(message)

proc = subprocess.run( # nosec # pylint: disable=subprocess-run-check
["git", "ls-files", "Pipfile", "*/Pipfile"], capture_output=True, encoding="utf-8", timeout=30
Expand Down

0 comments on commit c64c62b

Please sign in to comment.