Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Include version info in the logs #129

Merged
merged 2 commits into from
Apr 29, 2024
Merged

Conversation

Stefan-Ethernal
Copy link
Contributor

@Stefan-Ethernal Stefan-Ethernal commented Apr 28, 2024

The PR introduces version metadata info printed out on the application startup

For example:

Starting application...
Version:      v0.1.4-4-g0f38c47
Git revision: 0f38c47
Git branch:   feat/include-version-info-in-logs
Go version:   go1.21.6
Built:        Sun, 28 Apr 2024 07:44:44 +0000
OS/Arch:      linux/amd64

It also adds version printed out alongside process id on each log entry.

For example:

2024-04-28T07:45:59.582Z	[INFO]	cmd/main.go:91	running migrations up	{"pid": 1, "version": "v0.1.4-4-g0f38c47"}

@Stefan-Ethernal Stefan-Ethernal marked this pull request as ready for review April 28, 2024 07:48
@Stefan-Ethernal Stefan-Ethernal requested a review from a team as a code owner April 28, 2024 07:48
@Stefan-Ethernal Stefan-Ethernal force-pushed the feat/include-version-info-in-logs branch from bf2ccb4 to 6a2e606 Compare April 28, 2024 08:56
Copy link

Copy link
Contributor

@vcastellm vcastellm left a comment

Choose a reason for hiding this comment

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

LGTM

@vcastellm vcastellm merged commit 43c1cd7 into main Apr 29, 2024
6 checks passed
@vcastellm vcastellm deleted the feat/include-version-info-in-logs branch April 29, 2024 14:47
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.

3 participants