From 7e6662523098c0fb2d4ab852949c9d4bfa7e9ad9 Mon Sep 17 00:00:00 2001 From: Rohan Prabhu Date: Fri, 2 May 2025 19:30:07 +0530 Subject: [PATCH 1/2] chore: print global flags --- global_feature_flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global_feature_flags.go b/global_feature_flags.go index 63969e1..21e0b69 100644 --- a/global_feature_flags.go +++ b/global_feature_flags.go @@ -51,7 +51,7 @@ func (manager *GlobalFeatureFlagManager) refresh() error { defer manager.mutex.Unlock() flags := manager.apiClient.getGlobalFeatureFlags() - + WriteLog(fmt.Sprintf("Global feature flags: %+v", flags)) manager.flags = flags return nil } From 16de40de28d186ae843c17a65f6c83530da0a0f9 Mon Sep 17 00:00:00 2001 From: Rohan Prabhu Date: Fri, 2 May 2025 19:39:02 +0530 Subject: [PATCH 2/2] chore: print buildinfo --- buildinfo.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildinfo.go b/buildinfo.go index c409833..2529809 100644 --- a/buildinfo.go +++ b/buildinfo.go @@ -1,6 +1,13 @@ package main +import "fmt" + // filled through ldflags var ( ReleaseTag = "" + commit = "" ) + +func LogBuildInfo() { + WriteLog(fmt.Sprintf("[buildInfo] tag=%s commit=%s \n", ReleaseTag, commit)) +}