mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 16:55:07 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
f1d731da11
commit
1c545dffca
3 changed files with 5 additions and 6 deletions
|
@ -1,10 +1,10 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Vircadia Metadata exporter</title>
|
||||
<title>Vircadia Metadata Exporter</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Vircadia Metadata exporter</h1>
|
||||
<h1>Vircadia Metadata Exporter</h1>
|
||||
|
||||
<p>If you can see this page, this means that your domain's metadata is available to be exported.</p>
|
||||
<p>
|
||||
|
|
|
@ -44,12 +44,11 @@ public:
|
|||
|
||||
DomainMetadata(QObject* domainServer);
|
||||
~DomainMetadata() = default;
|
||||
|
||||
// Get cached metadata
|
||||
QJsonObject get();
|
||||
QJsonObject get(const QString& group);
|
||||
|
||||
bool handleHTTPRequest(HTTPConnection* connection, const QUrl& url, bool skipSubHandler = false);
|
||||
bool handleHTTPRequest(HTTPConnection* connection, const QUrl& url, bool skipSubHandler = false) override;
|
||||
|
||||
public slots:
|
||||
void descriptorsChanged();
|
||||
|
|
|
@ -3079,14 +3079,14 @@ void DomainServer::initializeMetadataExporter() {
|
|||
int metadataExporterPort = _settingsManager.valueOrDefaultValueForKeyPath(EXPORTER_PORT).toInt();
|
||||
|
||||
if (metadataExporterPort < MIN_PORT || metadataExporterPort > MAX_PORT) {
|
||||
qCWarning(domain_server) << "Metadata exporter port " << metadataExporterPort << " is out of range.";
|
||||
qCWarning(domain_server) << "Metadata exporter port" << metadataExporterPort << "is out of range.";
|
||||
isMetadataExporterEnabled = false;
|
||||
}
|
||||
|
||||
qCDebug(domain_server) << "Setting up Metadata exporter.";
|
||||
|
||||
if (isMetadataExporterEnabled && !_httpMetadataExporterManager) {
|
||||
qCInfo(domain_server) << "Starting Metadata exporter on port " << metadataExporterPort;
|
||||
qCInfo(domain_server) << "Starting Metadata exporter on port" << metadataExporterPort;
|
||||
_httpMetadataExporterManager = new HTTPManager(QHostAddress::Any, (quint16)metadataExporterPort, QString("%1/resources/metadata_exporter/").arg(QCoreApplication::applicationDirPath()), _metadata);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue