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

Sample(pubsub): logs error message even when success #1822

Closed
zhumin8 opened this issue May 8, 2023 · 2 comments
Closed

Sample(pubsub): logs error message even when success #1822

zhumin8 opened this issue May 8, 2023 · 2 comments
Labels
priority: p4 pubsub type: bug Something isn't working

Comments

@zhumin8
Copy link
Contributor

zhumin8 commented May 8, 2023

In spring-cloud-gcp-integration-pubsub-sample
SenderApplication logs error message even when successfully sending messages.
relevant logging logic here.

Log from Sender:

2023-05-08T16:49:24.834-04:00  INFO 2822081 --- [bsub-publisher2] com.example.SenderApplication            : Message was sent successfully;
        publish ID = 7671125505524260
        message=now get this(0)
2023-05-08T16:49:24.834-04:00  INFO 2822081 --- [bsub-publisher3] com.example.SenderApplication            : Message was sent successfully;
        publish ID = 7671135638409620
        message=now get this(1)
2023-05-08T16:49:24.834-04:00  INFO 2822081 --- [bsub-publisher2] com.example.SenderApplication            : There was an error sending the message: now get this(0)
2023-05-08T16:49:24.834-04:00  INFO 2822081 --- [bsub-publisher3] com.example.SenderApplication            : There was an error sending the message: now get this(1)
2023-05-08T16:49:24.835-04:00  INFO 2822081 --- [bsub-publisher3] com.example.SenderApplication            : Message was sent successfully;
        publish ID = 7671135638409621
        message=now get this(2)
2023-05-08T16:49:24.835-04:00  INFO 2822081 --- [bsub-publisher3] com.example.SenderApplication            : There was an error sending the message: now get this(2)

Log from receiver:

2023-05-08T16:49:08.021-04:00  INFO 2822294 --- [           main] com.example.ReceiverApplication          : Started ReceiverApplication in 1.606 seconds (process running for 1.839)
Hit 'Enter' to terminate
2023-05-08T16:49:25.915-04:00  INFO 2822294 --- [sub-subscriber2] com.example.ReceiverApplication          : Message arrived! Payload: now get this(2)
2023-05-08T16:49:25.915-04:00  INFO 2822294 --- [sub-subscriber3] com.example.ReceiverApplication          : Message arrived! Payload: now get this(0)
2023-05-08T16:49:25.915-04:00  INFO 2822294 --- [sub-subscriber1] com.example.ReceiverApplication          : Message arrived! Payload: now get this(1)
@meltsufin
Copy link
Member

@zhumin8 Is this possibly fixed by #1799?

@mpeddada1 mpeddada1 added type: bug Something isn't working pubsub labels May 9, 2023
@zhumin8
Copy link
Contributor Author

zhumin8 commented May 10, 2023

Ah, yes! I missed this and did not do a clean install before test.
Closing this.

@zhumin8 zhumin8 closed this as completed May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p4 pubsub type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants