]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1704] Clarify why the null logger is used in logger_example
authorMukund Sivaraman <muks@isc.org>
Fri, 1 Jun 2012 06:16:18 +0000 (11:46 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 1 Jun 2012 06:16:49 +0000 (11:46 +0530)
src/lib/log/tests/logger_example.cc

index f7274fb450d107c425e799ab8301fe10c8bdc346..853d48a73ff3ff6c2c43bcc276104552d3c1b4a0 100644 (file)
@@ -281,7 +281,11 @@ int main(int argc, char** argv) {
         LoggerManager::readLocalMessageFile(argv[optind]);
     }
 
-    // Log a few messages to different loggers.
+    // Log a few messages to different loggers. Here, we switch to using
+    // null interprocess sync objects for the loggers below as the
+    // logger example can be used as a standalone program (which may not
+    // have write access to a local state directory to create
+    // lockfiles).
     isc::log::Logger logger_ex(ROOT_NAME);
     logger_ex.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
     isc::log::Logger logger_alpha("alpha");