Skip to content
Permalink
Browse files

Make info about host and port more obvious visible

  • Loading branch information
rduivenvoorde committed Apr 17, 2020
1 parent f4a5986 commit e6352152780a917b9019dd62a206ce085e73a09e
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/server/qgis_mapserver.cpp
@@ -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 };

@@ -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, [ & ]
{

0 comments on commit e635215

Please sign in to comment.
You can’t perform that action at this time.