Skip to content

Commit

Permalink
Make info about host and port more obvious visible
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde committed Apr 29, 2020
1 parent f4a5986 commit e635215
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/server/qgis_mapserver.cpp
Expand Up @@ -205,12 +205,6 @@ int main( int argc, char *argv[] )
else
{
const int port { tcpServer.serverPort() };
std::cout << QObject::tr( "QGIS Development Server listening on http://%1:%2" )
.arg( ipAddress ).arg( port ).toStdString() << std::endl;

#ifndef Q_OS_WIN
std::cout << QObject::tr( "CTRL+C to exit" ).toStdString() << std::endl;
#endif

QAtomicInt connCounter { 0 };

Expand Down Expand Up @@ -239,6 +233,12 @@ int main( int argc, char *argv[] )
server.initPython();
#endif

std::cout << QObject::tr( "QGIS Development Server listening on http://%1:%2" )
.arg( ipAddress ).arg( port ).toStdString() << std::endl;
#ifndef Q_OS_WIN
std::cout << QObject::tr( "CTRL+C to exit" ).toStdString() << std::endl;
#endif

// Starts HTTP loop with a poor man's HTTP parser
tcpServer.connect( &tcpServer, &QTcpServer::newConnection, [ & ]
{
Expand Down

0 comments on commit e635215

Please sign in to comment.