Skip to content

Commit

Permalink
Merge pull request #30 from epsilla-cloud/port
Browse files Browse the repository at this point in the history
Improve print on start
  • Loading branch information
ricki-epsilla authored Aug 5, 2023
2 parents d8e3064 + 32e9d87 commit 0cd46b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion engine/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ int main(int argc, char *argv[]) {
}
case 'p': {
std::string server_port = optarg;
std::cout << "Server port: " << server_port << std::endl;
port = (uint16_t)(stoi(server_port));
break;
}
Expand All @@ -77,6 +76,7 @@ int main(int argc, char *argv[]) {
status = server.Start(port);
if (status.ok()) {
std::cout << "Epsilla Vector Database server started successfully!" << std::endl;
std::cout << "Server running on http://localhost:" << port << std::endl;
} else {
std::cout << status.message() << std::endl;
goto FAIL;
Expand Down
1 change: 0 additions & 1 deletion engine/server/web_server/web_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Status
WebServer::StartService() {
oatpp::base::Environment::init();
{
std::cout << "web server started!" << std::endl;
WebComponent components = WebComponent(port_);

/* create ApiControllers and add endpoints to router */
Expand Down

0 comments on commit 0cd46b4

Please sign in to comment.