Browse Source

[1704] Use 'logger' as the task name for all interprocess sync objects inside log/

Mukund Sivaraman 13 years ago
parent
commit
3e8b461db0
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/lib/log/logger_manager.cc
  2. 3 3
      src/lib/log/tests/logger_example.cc

+ 1 - 1
src/lib/log/logger_manager.cc

@@ -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 {
 

+ 3 - 3
src/lib/log/tests/logger_example.cc

@@ -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");