Skip to content

[PR] fix(logging): strip compile-time absolute paths from log output - #131

Merged
Kaszanas merged 3 commits into
devfrom
130-logs-keep-full-paths
Sep 1, 2026
Merged

[PR] fix(logging): strip compile-time absolute paths from log output#131
Kaszanas merged 3 commits into
devfrom
130-logs-keep-full-paths

Conversation

@Kaszanas

@Kaszanas Kaszanas commented Sep 1, 2026

Copy link
Copy Markdown
Owner

logrus's SetReportCaller embeds the absolute source path baked in at build time, which leaked the build machine's directory layout into logs shipped with the released .exe (issue #130). Add a CallerPrettyfier that rewrites it to a path relative to the project root, computed at runtime from this file's own reported path so it works regardless of how or where the binary was built.

logrus's SetReportCaller embeds the absolute source path baked in at
build time, which leaked the build machine's directory layout into
logs shipped with the released .exe (issue #130). Add a
CallerPrettyfier that rewrites it to a path relative to the project
root, computed at runtime from this file's own reported path so it
works regardless of how or where the binary was built.
@Kaszanas Kaszanas added this to the 2.2.0 milestone Sep 1, 2026
@Kaszanas Kaszanas self-assigned this Sep 1, 2026
@Kaszanas Kaszanas linked an issue Sep 1, 2026 that may be closed by this pull request
errcheck flagged the unchecked defer logFile.Close() in
TestSetLogging_NoAbsoluteBuildPathLeaksIntoLogFile.
Add concurrency groups with cancel-in-progress to the top-level
workflows (pipeline, docker_release, cla) so rapid pushes/comments on
the same PR, ref, or issue don't race overlapping CI runs. The
workflow_call-only reusable workflows (lint, e2e_tests,
docker_build_verify, docker_publish) don't need their own group since
they run inside the caller's run.
@Kaszanas
Kaszanas merged commit ce76f39 into dev Sep 1, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026
@Kaszanas Kaszanas linked an issue Sep 1, 2026 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Action Concurrency Rules Logs Keep Full Paths From Compilation Source

1 participant