From 774eef1c1281e40969b8e4eac6880309789f3cec Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 30 Sep 2013 13:36:36 -0700 Subject: [PATCH] logging touchups in voxel-server --- libraries/voxel-server-library/src/VoxelServer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/voxel-server-library/src/VoxelServer.cpp b/libraries/voxel-server-library/src/VoxelServer.cpp index 5e587fbbe2..5044c62a72 100644 --- a/libraries/voxel-server-library/src/VoxelServer.cpp +++ b/libraries/voxel-server-library/src/VoxelServer.cpp @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -167,6 +168,11 @@ void VoxelServer::parsePayload() { //int main(int argc, const char * argv[]) { void VoxelServer::run() { + + const char VOXEL_SERVER_LOGGING_TARGET_NAME[] = "voxel-server"; + + // change the logging target name while this is running + Logging::setTargetName(VOXEL_SERVER_LOGGING_TARGET_NAME); // Now would be a good time to parse our arguments, if we got them as assignment if (getNumPayloadBytes() > 0) { @@ -175,7 +181,7 @@ void VoxelServer::run() { pthread_mutex_init(&_treeLock, NULL); - qInstallMessageHandler(sharedMessageHandler); + qInstallMessageHandler(Logging::verboseMessageHandler); const char* JURISDICTION_FILE = "--jurisdictionFile"; const char* jurisdictionFile = getCmdOption(_argc, _argv, JURISDICTION_FILE);