Enable API WebServices when GC is running

.. but disable logging if not running as a server
.. let user define if API services start in preferences
This commit is contained in:
Mark Liversedge
2015-09-17 14:21:21 +01:00
parent e1312caa33
commit 422d5ad5fc
13 changed files with 151 additions and 80 deletions

View File

@@ -26,7 +26,7 @@ HttpConnectionHandlerPool::~HttpConnectionHandlerPool() {
delete handler;
}
delete sslConfiguration;
qDebug("HttpConnectionHandlerPool (%p): destroyed", this);
wDebug("HttpConnectionHandlerPool (%p): destroyed", this);
}
@@ -64,7 +64,7 @@ void HttpConnectionHandlerPool::cleanup() {
if (++idleCounter > maxIdleHandlers) {
pool.removeOne(handler);
delete handler;
qDebug("HttpConnectionHandlerPool: Removed connection handler (%p), pool size is now %i",handler,pool.size());
wDebug("HttpConnectionHandlerPool: Removed connection handler (%p), pool size is now %i",handler,pool.size());
break; // remove only one handler in each interval
}
}
@@ -125,7 +125,7 @@ void HttpConnectionHandlerPool::loadSslConfig() {
sslConfiguration->setPeerVerifyMode(QSslSocket::VerifyNone);
sslConfiguration->setProtocol(QSsl::TlsV1SslV3);
qDebug("HttpConnectionHandlerPool: SSL settings loaded");
wDebug("HttpConnectionHandlerPool: SSL settings loaded");
#endif
}
}