Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function formatting file field in the log output #300

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

tznamena
Copy link
Contributor

@tznamena tznamena commented Jun 6, 2023

With this change, the file field in the log output will only show file name without path and the line number where the call originated.
Going from:

... func=github.com/microsoft/commercial-marketplace-offer-deploy/internal/hook.(*httpSender).Send.func1 file=/home/tznamena/Projects/Ansible/AoC/Code/azure-aap-deployment-driver/build/commercial-marketplace-offer-deploy/internal/hook/sender.go:50 ...

To:

... func=github.com/microsoft/commercial-marketplace-offer-deploy/internal/hook.(*httpSender).Send.func1 file=sender.go:50 ...

This would resolve issue #299

@tznamena
Copy link
Contributor Author

tznamena commented Jun 7, 2023

@microsoft-github-policy-service agree

@kevinhillinger kevinhillinger linked an issue Jun 7, 2023 that may be closed by this pull request
@kevinhillinger kevinhillinger merged commit f3d4482 into microsoft:v1 Jun 7, 2023
1 check passed
@kevinhillinger kevinhillinger self-assigned this Jun 7, 2023
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.

Shorten printout of caller file path in the logging output
2 participants