Bump WHOOSH release to 0.1.7

This commit is contained in:
Claude Code
2025-10-17 09:26:02 +11:00
parent e2847a64ba
commit f5a141f97b
4 changed files with 73 additions and 62 deletions

View File

@@ -26,7 +26,7 @@ const (
var (
// Build-time variables (set via ldflags)
version = "0.1.5"
version = "0.1.7"
commitHash = "unknown"
buildDate = "unknown"
)
@@ -67,7 +67,7 @@ func main() {
// Load configuration
var cfg config.Config
// Debug: Print all environment variables starting with WHOOSH
log.Debug().Msg("Environment variables:")
for _, env := range os.Environ() {
@@ -83,7 +83,7 @@ func main() {
}
}
}
if err := envconfig.Process("whoosh", &cfg); err != nil {
log.Fatal().Err(err).Msg("Failed to load configuration")
}
@@ -122,7 +122,7 @@ func main() {
log.Fatal().Err(err).Msg("Failed to initialize tracing")
}
defer tracingCleanup()
if cfg.OpenTelemetry.Enabled {
log.Info().
Str("jaeger_endpoint", cfg.OpenTelemetry.JaegerEndpoint).
@@ -133,7 +133,7 @@ func main() {
// Set version for server
server.SetVersion(version)
// Initialize server
srv, err := server.NewServer(&cfg, db)
if err != nil {
@@ -148,7 +148,7 @@ func main() {
log.Info().
Str("addr", cfg.Server.ListenAddr).
Msg("🌐 Starting HTTP server")
if err := srv.Start(ctx); err != nil {
log.Error().Err(err).Msg("Server startup failed")
cancel()
@@ -168,7 +168,7 @@ func main() {
// Graceful shutdown
log.Info().Msg("🔄 Starting graceful shutdown...")
shutdownCtx, shutdownCancel := context.WithTimeout(context.Background(), 30*time.Second)
defer shutdownCancel()
@@ -182,10 +182,10 @@ func main() {
func runHealthCheck() error {
// Simple health check - try to connect to health endpoint
client := &http.Client{Timeout: 5 * time.Second}
// Use localhost for health check
healthURL := "http://localhost:8080/health"
resp, err := client.Get(healthURL)
if err != nil {
return fmt.Errorf("health check request failed: %w", err)
@@ -202,7 +202,7 @@ func runHealthCheck() error {
func setupLogging() {
// Configure zerolog for structured logging
zerolog.TimeFieldFormat = zerolog.TimeFormatUnix
// Set log level from environment
level := os.Getenv("LOG_LEVEL")
switch level {