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

[logger] Trim base paths from file and function names #474

Merged
merged 2 commits into from
Aug 23, 2023
Merged

Conversation

manugarg
Copy link
Contributor

@manugarg manugarg commented Aug 23, 2023

A log line like the following:

{"time":"2023-08-22T18:14:07.77109-07:00","level":"INFO","source":{"function":"github.com/cloudprober/cloudprober/prober.(*Prober).addProbe","file":"/home/runner/work/cloudprober/cloudprober/prober/prober.go","line":112},"msg":"Creating a HTTP probe: api_server","system":"cloudprober","component":"global"}

changes to:

{"time":"2023-08-22T18:14:07.77109-07:00","level":"INFO","source":{"function":"prober.(*Prober).addProbe","file":"prober/prober.go","line":112},"msg":"Creating a HTTP probe: api_server","system":"cloudprober","component":"global"}

@manugarg manugarg merged commit 2c8dd71 into master Aug 23, 2023
10 checks passed
@manugarg manugarg deleted the log_path branch August 23, 2023 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant