]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1704] Use 'logger' as the task name for all interprocess sync objects inside log/
authorMukund Sivaraman <muks@isc.org>
Mon, 28 May 2012 13:32:06 +0000 (19:02 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 28 May 2012 13:32:11 +0000 (19:02 +0530)
src/lib/log/logger_manager.cc
src/lib/log/tests/logger_example.cc

index 164e226755c98467b11530373fff05851b5a343b..ad3bffa757f880527ee9e2ac1f5c779f3327f18d 100644 (file)
@@ -151,7 +151,7 @@ LoggerManager::readLocalMessageFile(const char* file) {
     MessageReader reader(&dictionary);
 
     // Turn off use of any lock files
-    logger.setInterprocessSync(new isc::util::InterprocessSyncNull("log"));
+    logger.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
 
     try {
 
index 991a235f2c0b86da4cfcbd11264b243b29124109..f7274fb450d107c425e799ab8301fe10c8bdc346 100644 (file)
@@ -283,11 +283,11 @@ int main(int argc, char** argv) {
 
     // Log a few messages to different loggers.
     isc::log::Logger logger_ex(ROOT_NAME);
-    logger_ex.setInterprocessSync(new isc::util::InterprocessSyncNull(ROOT_NAME));
+    logger_ex.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
     isc::log::Logger logger_alpha("alpha");
-    logger_alpha.setInterprocessSync(new isc::util::InterprocessSyncNull("alpha"));
+    logger_alpha.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
     isc::log::Logger logger_beta("beta");
-    logger_beta.setInterprocessSync(new isc::util::InterprocessSyncNull("beta"));
+    logger_beta.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
 
     LOG_FATAL(logger_ex, LOG_WRITE_ERROR).arg("test1").arg("42");
     LOG_ERROR(logger_ex, LOG_READING_LOCAL_FILE).arg("dummy/file");