Skip to content

Commit c53b065

Browse files
Saksham-Prakashdsyer
authored andcommitted
Add logging for gRPC server address and port on startup
Closes #49049 Signed-off-by: sakshamprakash <sakshamprakash97@gmail.com>
1 parent fecab55 commit c53b065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-grpc-core/src/main/java/org/springframework/grpc/server/lifecycle/GrpcServerLifecycle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected void createAndStartGrpcServer() throws IOException {
126126
this.server = localServer.start();
127127
final String address = this.server.getListenSockets().toString();
128128
final int port = this.server.getPort();
129-
logger.info("gRPC Server started, listening on address: " + this.server.getListenSockets());
129+
logger.info("gRPC Server started, listening on address: " + address + ", port: " + port);
130130
this.eventPublisher.publishEvent(new GrpcServerStartedEvent(this, localServer, address, port));
131131

132132
// Prevent the JVM from shutting down while the server is running

0 commit comments

Comments
 (0)