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

Fixed an issue where variables were printed with the wrong placeholder #335

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cluster/etcd_service_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ func (sd *etcdServiceDiscovery) SyncServers(firstSync bool) error {
servers := parallelGetter.waitAndGetResult()

for _, server := range servers {
logger.Log.Debugf("adding server %s", server)
logger.Log.Debugf("adding server %v", server)
sd.addServer(server)
}

Expand Down
2 changes: 1 addition & 1 deletion cluster/nats_rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (ns *NatsRPCServer) handleMessages() {
}
subsChanLen := float64(len(ns.subChan))
maxPending = math.Max(float64(maxPending), subsChanLen)
logger.Log.Debugf("subs channel size: %d, max: %d, dropped: %d", subsChanLen, maxPending, dropped)
logger.Log.Debugf("subs channel size: %v, max: %v, dropped: %v", subsChanLen, maxPending, dropped)
req := &protos.Request{}
// TODO: Add tracing here to report delay to start processing message in spans
err = proto.Unmarshal(msg.Data, req)
Expand Down
2 changes: 1 addition & 1 deletion examples/demo/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func NewRoom(app pitaya.Pitaya) *Room {
func (r *Room) AfterInit() {
r.timer = pitaya.NewTimer(time.Minute, func() {
count, err := r.app.GroupCountMembers(context.Background(), "room")
logger.Log.Debugf("UserCount: Time=> %s, Count=> %d, Error=> %q", time.Now().String(), count, err)
logger.Log.Debugf("UserCount: Time=> %s, Count=> %d, Error=> %v", time.Now().String(), count, err)
})
}

Expand Down
Loading