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

Use logger util for sphinx-tribes/db #2266

Closed
Tracked by #2168
kevkevinpal opened this issue Dec 22, 2024 · 3 comments · Fixed by #2269
Closed
Tracked by #2168

Use logger util for sphinx-tribes/db #2266

kevkevinpal opened this issue Dec 22, 2024 · 3 comments · Fixed by #2269
Assignees

Comments

@kevkevinpal
Copy link
Contributor

kevkevinpal commented Dec 22, 2024

Description

We want to replace in sphinx-tribes/db where we use fmt.Print{f,ln}

grep -nri "fmt\.Print" ./db
./db/alerts.go:39:              fmt.Println("Ticket alerts: ENV information not found")
./db/alerts.go:53:              fmt.Println("Ticket alerts: New ticket time not found")
./db/alerts.go:60:              fmt.Println("Ticket alerts: No tickets found for person")
./db/alerts.go:79:              fmt.Println("Ticket alerts: No ticket identified with the correct timestamp")
./db/alerts.go:84:              fmt.Println("Ticket alerts: No languages found in ticket")
./db/alerts.go:91:              fmt.Println("Ticket alerts: DB query to get interested people failed", err)
./db/alerts.go:101:                     fmt.Println("Ticket alerts: Unable to parse message into byte buffer", err)
./db/alerts.go:106:                     fmt.Println("Ticket alerts: Unable to create a request to send to relay", err)
./db/alerts.go:118:                     fmt.Println("Ticket alerts: Unable to communicate request to relay", err)
./db/config.go:43:      fmt.Printf("db url : %v", dbURL)
./db/config.go:71:      fmt.Println("db connected")
./db/config.go:475:             fmt.Println("ticket from process", ticket)
./db/config_test.go:240:        fmt.Println("tickets", tickets)
./db/metrics.go:27:             fmt.Println("Error parsing date:", err)
./db/redis.go:33:                       fmt.Println("REDIS URL CONNECTION ERROR ===", err)
./db/redis.go:39:               fmt.Println("Could Not Connect To Redis", err)
./db/redis.go:46:               fmt.Println("REDIS SET ERROR :", err)
./db/redis.go:53:               fmt.Println("REDIS GET ERROR :", err)
./db/redis.go:63:                       fmt.Println("REDIS SET MAP ERROR :", err)
./db/store.go:175:              fmt.Println("challenge not found", err)
./db/store.go:185:              fmt.Println(err)
./db/store.go:193:              fmt.Println("payload unparseable", err)
./db/store.go:273:              fmt.Println(err)
./db/store.go:280:              fmt.Println("save payload unparseable", err)
./db/test_config.go:38: fmt.Println("DB CONNECTED")
./db/tickets.go:184:    fmt.Println("data ===", data)
@AhsanFarooqDev
Copy link
Contributor

@kevkevinpal can I help?

@saithsab877
Copy link
Contributor

@kevkevinpal assign me

@MahtabBukhari
Copy link
Contributor

@kevkevinpal please assign me

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 a pull request may close this issue.

4 participants