mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-21 17:45:43 +02:00
chore: some improvements in bladectl sub-command handling, error logging, and CI (#51)
chore(ci): update Go setup action to v5 and simplify caching configuration for improved performance chore(release): update Go setup action to v5 and simplify caching configuration for improved performance fix(.gitignore): add .idea directory to ignore list to prevent IDE files from being tracked feat(goreleaser): add versioning information to builds for better traceability feat(agent): expose version, commit, and date information in logs for better tracking feat(bladectl): implement command structure for managing compute-blade features fix(bladectl): improve error handling in identify command for better user feedback chore(go.mod): update dependencies to latest versions for improved stability and features
This commit is contained in:
@@ -22,6 +22,12 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
var (
|
||||
Version string
|
||||
Commit string
|
||||
Date string
|
||||
)
|
||||
|
||||
func main() {
|
||||
var wg sync.WaitGroup
|
||||
|
||||
@@ -84,7 +90,7 @@ func main() {
|
||||
}
|
||||
}()
|
||||
|
||||
log.FromContext(ctx).Info("Bootstrapping compute-blade-agent", zap.String("version", viper.GetString("version")))
|
||||
log.FromContext(ctx).Info("Bootstrapping compute-blade-agent", zap.String("version", Version), zap.String("commit", Commit), zap.String("date", Date))
|
||||
computebladeAgent, err := agent.NewComputeBladeAgent(ctx, cbAgentConfig)
|
||||
if err != nil {
|
||||
log.FromContext(ctx).Error("Failed to create agent", zap.Error(err))
|
||||
|
||||
Reference in New Issue
Block a user