Skip to content

Conversation

aliculPix4D
Copy link
Contributor

fix the policy-checker-handler logger session name

Very minor log name correction.

Currently in the logs one sees:

{"timestamp":"2024-10-09T10:05:31.196402292Z","level":"error","source":"atc","message":"atc.policy-checker.policy-checker","data":{"error":"OPA server: connecting: Post "[http://localhost:8181/v1/data/concourse/decision\](http://localhost:8181/v1/data/concourse/decision%5C)": dial tcp [::1]:8181: connect: connection refused","session":"134","user-msg":"policy-checker: unreachable or misconfigured"}}

note the msg: atc.policy-checker.policy-checker. The atc.policy-checker is already there. So the session name should just be handler.

With the proposed change we will see: atc.policy-checker.handler

Signed-off-by: aliculPix4D <aleksandar.licul@pix4d.com>
Copy link
Contributor

@marco-m-pix4d marco-m-pix4d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(is this going to upstream on purpose? Ah, it is the one you mentioned missing?)

@aliculPix4D
Copy link
Contributor Author

aliculPix4D commented Feb 24, 2025

(is this going to upstream on purpose? Ah, it is the one you mentioned missing?)

Yes, its on purpose... we had this merged for few months now, but I forgot to include it in the PRs to upstream... (I noticed it now, since we are syncing with upstream master and I got conflict on this line)

@taylorsilva taylorsilva merged commit 997aa65 into concourse:master Feb 25, 2025
11 checks passed
@aliculPix4D aliculPix4D deleted the policy-checker-correct-handler-name branch February 25, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants