Skip to content

Commit

Permalink
Changing info printout for server
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Sep 10, 2024
1 parent cce3028 commit 69c4330
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "${{ service_include_dir }}/${{ service_name_camel_case }}ServiceServerFactory.h"
#include "sdk/middleware/Middleware.h"
#include "sdk/Logger.h"

#include <grpcpp/ext/proto_server_reflection_plugin.h>
#include <grpcpp/grpcpp.h>
Expand All @@ -38,7 +39,7 @@ std::unique_ptr<grpc::Server> ${{ service_name_camel_case }}ServiceServerFactory
builder.RegisterService(service.get());
// Finally assemble the server.
std::unique_ptr<grpc::Server> server(builder.BuildAndStart());
std::cout << "Server listening on " << serviceLocation << std::endl;
velocitas::logger().info("Server ${{ package_id }}::${{ service_name }} listening on {}", serviceLocation);

return server;
}
Expand Down

0 comments on commit 69c4330

Please sign in to comment.