disable the user activity logger in DS/AC/ac-client

This commit is contained in:
Stephen Birarda 2017-06-28 13:18:34 -07:00
parent 20f713a241
commit 86eb5b14ca
3 changed files with 15 additions and 3 deletions

View file

@ -13,9 +13,10 @@
#include <QThread>
#include <LogHandler.h>
#include <SharedUtil.h>
#include <HifiConfigVariantMap.h>
#include <SharedUtil.h>
#include <ShutdownEventListener.h>
#include <UserActivityLogger.h>
#include "Assignment.h"
#include "AssignmentClient.h"
@ -207,6 +208,9 @@ AssignmentClientApp::AssignmentClientApp(int argc, char* argv[]) :
DependencyManager::registerInheritance<LimitedNodeList, NodeList>();
// the ACs should not send any user activity events so disable the logger ASAP
UserActivityLogger::getInstance().disable(true);
if (numForks || minForks || maxForks) {
AssignmentClientMonitor* monitor = new AssignmentClientMonitor(numForks, minForks, maxForks,
requestAssignmentType, assignmentPool,

View file

@ -40,11 +40,12 @@
#include <LogHandler.h>
#include <PathUtils.h>
#include <NumericalConstants.h>
#include <Trace.h>
#include <StatTracker.h>
#include <UserActivityLogger.h>
#include "DomainServerNodeData.h"
#include "NodeConnectionData.h"
#include <Trace.h>
#include <StatTracker.h>
int const DomainServer::EXIT_CODE_REBOOT = 234923;
@ -75,6 +76,9 @@ DomainServer::DomainServer(int argc, char* argv[]) :
{
parseCommandLine();
// the DS should not send any user activity events so disable the logger ASAP
UserActivityLogger::getInstance().disable(true);
DependencyManager::set<tracing::Tracer>();
DependencyManager::set<StatTracker>();

View file

@ -18,6 +18,7 @@
#include <AddressManager.h>
#include <DependencyManager.h>
#include <SettingHandle.h>
#include <UserActivityLogger.h>
#include "ACClientApp.h"
@ -42,6 +43,8 @@ ACClientApp::ACClientApp(int argc, char* argv[]) :
const QCommandLineOption listenPortOption("listenPort", "listen port", QString::number(INVALID_PORT));
parser.addOption(listenPortOption);
// the AC client should not send any user activity events so disable the logger ASAP
UserActivityLogger::getInstance().disable(true);
if (!parser.parse(QCoreApplication::arguments())) {
qCritical() << parser.errorText() << endl;
@ -66,6 +69,7 @@ ACClientApp::ACClientApp(int argc, char* argv[]) :
const_cast<QLoggingCategory*>(&shared())->setEnabled(QtInfoMsg, false);
const_cast<QLoggingCategory*>(&shared())->setEnabled(QtWarningMsg, false);
}
QString domainServerAddress = "127.0.0.1:40103";
if (parser.isSet(domainAddressOption)) {