add more logging
This commit is contained in:
parent
867970a3ed
commit
219d8e8c81
|
@ -52,6 +52,7 @@ func (a *Account) Receive() {
|
|||
panic("channel closed")
|
||||
}
|
||||
|
||||
log.Info("pushing message")
|
||||
a.Push(m)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ func (svc *Service) QueueMessage(ctx context.Context, msg *pb.Message) (*pb.Resp
|
|||
if stream == "" {
|
||||
acct = svc.Default
|
||||
} else if acct, ok = svc.Accounts[stream]; !ok {
|
||||
log.Errf("invalid stream name '%s' in message", stream)
|
||||
return &pb.Response{
|
||||
Timestamp: time.Now().Unix(),
|
||||
Id: uuid.NewString(),
|
||||
|
|
Loading…
Reference in New Issue